From 66acacd5a66ce687b471831f2614fc1b782c3cef Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 7 Mar 2024 20:53:36 +0200 Subject: [PATCH] Backport template from upstream (#421) --- package.json | 4 ++-- src/layouts/partials/footer.html | 24 ++++++++++++------------ src/layouts/partials/navbar.html | 7 +++---- src/layouts/shortcodes/example.html | 14 +++++++------- src/layouts/sitemap.xml | 8 +++++--- 5 files changed, 29 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 39b46842c..dc62abbe5 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,8 @@ }, "scripts": { "start": "npm run serve", - "build": "hugo --cleanDestinationDir --printUnusedTemplates", - "serve": "hugo server --port 4000 --disableFastRender", + "build": "hugo --cleanDestinationDir --printPathWarnings --printUnusedTemplates", + "serve": "hugo server --port 4000 --disableFastRender --noHTTPCache --renderToMemory --printPathWarnings --printUnusedTemplates", "serve-only": "npx sirv-cli _site --port 4000", "test": "npm-run-all build --parallel --continue-on-error --aggregate-output test-*", "test-eslint": "eslint --ignore-path .gitignore --cache --cache-location .cache/.eslintcache --report-unused-disable-directives --ext .js,.mjs .", diff --git a/src/layouts/partials/footer.html b/src/layouts/partials/footer.html index e340df5b1..25e47f0ea 100644 --- a/src/layouts/partials/footer.html +++ b/src/layouts/partials/footer.html @@ -2,7 +2,7 @@
diff --git a/src/layouts/partials/navbar.html b/src/layouts/partials/navbar.html index b4574d7b8..5a3e9c282 100644 --- a/src/layouts/partials/navbar.html +++ b/src/layouts/partials/navbar.html @@ -77,28 +77,27 @@
Bootstrap
  • -
    diff --git a/src/layouts/shortcodes/example.html b/src/layouts/shortcodes/example.html index 2e6c7318d..e2f758ea6 100644 --- a/src/layouts/shortcodes/example.html +++ b/src/layouts/shortcodes/example.html @@ -13,23 +13,23 @@ {{- $id := .Get "id" -}} {{- $class := .Get "class" -}} {{- $lang := .Get "lang" | default "html" -}} -{{- $stackblitz_add_js := .Get "stackblitz_add_js" | default false -}} {{- $show_markup := .Get "show_markup" | default true -}} {{- $show_preview := .Get "show_preview" | default true -}} -{{- $input := .Inner -}} + + {{- $content := .Inner -}}
    - {{- if eq $show_preview true -}} + {{- if eq $show_preview true }} - {{- $input -}} + {{ $content }}
    - {{- end -}} + {{- end }} {{- if eq $show_markup true -}} {{- if eq $show_preview true -}}
    - {{- $lang -}} + {{ $lang }}