mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
14 lines
555 B
HTML
14 lines
555 B
HTML
{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}
|
|
|
|
{{- partial "helper/external" (dict "Context" . "Namespace" "StickyScroller") -}}
|
|
<script>
|
|
window.addEventListener("load", () => {
|
|
const rightSiderbar = document.querySelector(".right-sidebar");
|
|
if (rightSiderbar) new StickyScroller(rightSiderbar);
|
|
})
|
|
</script>
|
|
|
|
{{- $opts := dict "minify" hugo.IsProduction -}}
|
|
{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}}
|
|
|
|
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script> |