diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index d0720ea362..24576b54a6 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -16,6 +16,12 @@ This document shows you what's new in the latest release. For a detailed list of ## 5.0.0 +- **Breaking**: The theme changed how JavaScript and CSS dependencies are loaded to provide a better performance. In case you've added own JavaScript code that depends on the themes jQuery implementation, you have to put it into a separate `*.js` file (if not already) and add the `defer` keyword to the `script` element. Eg. + + ````html + + ```` + - **Change**: The way [archetypes]({{% relref "cont/archetypes" %}}) are used to generate output has changed. The new systems allows you, to redefine existing archetypes or even generate your own ones. Your existing markdown files will still work like before and therefore you don't need to change anything after the upgrade. Nevertheless, it is recommended to adapt your existing markdown files to the new way as follows: diff --git a/exampleSite/layouts/partials/menu-footer.html b/exampleSite/layouts/partials/menu-footer.html index 5de9cecd24..a93b0149c4 100644 --- a/exampleSite/layouts/partials/menu-footer.html +++ b/exampleSite/layouts/partials/menu-footer.html @@ -18,4 +18,4 @@ Star Fork
Built with by Hugo
- \ No newline at end of file + \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2d48d2cea2..1f994189cd 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,9 +4,9 @@ {{- partial "custom-comments.html" . }} {{- partial "menu.html" . }} - - - + + + {{- $wantsMathJax := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasMathJax")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasMathJax")) }} {{- if $wantsMathJax }} {{- if isset .Params "mathjaxinitialize" }} @@ -50,13 +50,13 @@ {{- end }} {{- $wantsMermaid := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasMermaid")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasMermaid")) }} {{- if $wantsMermaid }} - + {{- if isset .Params "custommermaidurl" }} - + {{- else if isset .Site.Params "custommermaidurl" }} - + {{- else }} - + {{- end }} {{- if isset .Params "mermaidinitialize" }} {{- $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }} @@ -81,11 +81,11 @@ {{- $wantsSwagger := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasSwagger")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasSwagger")) }} {{- if $wantsSwagger }} {{- if isset .Params "customswaggerurl" }} - + {{- else if isset .Site.Params "customswaggerurl" }} - + {{- else }} - + {{- end }} {{- if isset .Params "swaggerinitialize" }} {{- $.Scratch.Set "swaggerInitialize" .Params.swaggerInitialize }} @@ -104,7 +104,7 @@ useSwagger( JSON.parse({{ $.Scratch.Get "swaggerInitialize" }}) ); {{- end }} - + {{- partial "custom-footer.html" . }}