diff --git a/config.yaml b/config.yaml index a90b81f3602..fb9b4fdcb42 100644 --- a/config.yaml +++ b/config.yaml @@ -7,6 +7,8 @@ disqusShortname: velocidex-velociraptor #security: # enableInlineShortcodes: true +enableGitInfo: true + params: noDisqus: true themeVariant: "mine" diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 831b28e71bd..4c51896bba5 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -19,17 +19,22 @@ - {{end}} + {{end}} + + {{ $fn := "js/menu.js" }} + {{ with .Site.GetPage "/" }} + {{ $fn = printf "js/menu-%v.js" .GitInfo.AbbreviatedHash }} + {{ end }} {{ if .IsHome }} {{ with resources.Get "js/menu-tml.js" }} - {{ with resources.ExecuteAsTemplate "js/menu.js" $ . }} + {{ with resources.ExecuteAsTemplate $fn $ . }} {{ $a := .RelPermalink }} {{ end }} {{ end }} {{ end }} -