fix: inline stack theme
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{{- $opts := dict
|
||||
"minify" hugo.IsProduction
|
||||
"params" (dict
|
||||
"codeblock" (dict
|
||||
"copy" (i18n "article.codeblock.copy")
|
||||
"copied" (i18n "article.codeblock.copied")
|
||||
)
|
||||
)
|
||||
-}}
|
||||
{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}
|
||||
|
||||
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
||||
|
||||
{{- with resources.Get "ts/custom.ts" -}}
|
||||
{{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}}
|
||||
{{- $customScript := . | js.Build $opts | fingerprint -}}
|
||||
<script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user