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