diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 66495102d2..0a8b5df011 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,27 +34,6 @@ defaultContentLanguage = "en" # the site's title of this showcase; you should change this ;-) title = "Hugo Relearn Documentation" -# settings specific to this theme's features; choose to your likings and -# consult this documentation for explaination -[params] - editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/" - description = "Documentation for Hugo Relearn Theme" - author = "Sören Weber" - showVisitedLinks = true - collapsibleMenu = true - disableBreadcrumb = false - disableInlineCopyToClipBoard = true - disableNextPrev = false - disableLandingPageButton = true - titleSeparator = "::" - themeVariant = [ "relearn-light", "relearn-dark", "learn", "neon", "blue", "green", "red" ] - disableSeoHiddenPages = true - # this is for the stylesheet generator to allow for interactivity in Mermaid - # graphs; you usually will not need it and you should remove this for - # security reasons - mermaidInitialize = "{ \"securityLevel\": \"loose\" }" - additionalContentLanguage = [ "en" ] - [outputs] # add JSON to the home to support lunr search; This is a mandatory setting # for the search functionality @@ -170,3 +149,24 @@ title = "Hugo Relearn Documentation" name = " Arrr! Tags" url = "tags/" weight = 40 + +# settings specific to this theme's features; choose to your likings and +# consult this documentation for explaination +[params] + editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/" + description = "Documentation for Hugo Relearn Theme" + author = "Sören Weber" + showVisitedLinks = true + collapsibleMenu = true + disableBreadcrumb = false + disableInlineCopyToClipBoard = true + disableNextPrev = false + disableLandingPageButton = true + titleSeparator = "::" + themeVariant = [ "relearn-light", "relearn-dark", "learn", "neon", "blue", "green", "red" ] + disableSeoHiddenPages = true + # this is for the stylesheet generator to allow for interactivity in Mermaid + # graphs; you usually will not need it and you should remove this for + # security reasons + mermaidInitialize = "{ \"securityLevel\": \"loose\" }" + additionalContentLanguage = [ "en" ] diff --git a/exampleSite/test.bat b/exampleSite/test.bat new file mode 100644 index 0000000000..494e28ed39 --- /dev/null +++ b/exampleSite/test.bat @@ -0,0 +1,7 @@ +set /p version=<..\layouts\partials\version.txt +echo %version%>metrics.%version%.txt +echo disableAssetsBusting=true>>config.toml +echo disableGeneratorVersion=true>>config.toml +hugo --templateMetrics --templateMetricsHints --cleanDestinationDir --destination public.%version% >> metrics.%version%.txt +move /Y metrics.%version%.txt public.%version%\metrics.txt +git restore config.toml