From 300c9aa4ffb434b4fefead7d0fa3b438063d1fb6 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 7 May 2022 21:21:00 -0400 Subject: themes/default/layouts/partials/head: Add refresh setting --- config.json | 5 ++++- config.toml | 4 +++- config.yaml | 4 +++- themes/default/layouts/partials/head.html | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/config.json b/config.json index 18544c4..94656ff 100644 --- a/config.json +++ b/config.json @@ -84,7 +84,10 @@ } }, "params": { - "production": false, + "site": { + "production": false, + "refresh": null + }, "webmanifest": { "name": "Micro Blog", "shortName": "Micro", diff --git a/config.toml b/config.toml index fe3d643..548178b 100644 --- a/config.toml +++ b/config.toml @@ -81,7 +81,9 @@ enableRobotsTXT = true noHl = false [params] - production = false + + [params.site] + production = false [params.webmanifest] name = "Micro Blog" diff --git a/config.yaml b/config.yaml index eeb93dd..a3eee9d 100644 --- a/config.yaml +++ b/config.yaml @@ -68,7 +68,9 @@ markup: noHl: false params: - production: false + site: + production: false + refresh: webmanifest: name: Micro Blog shortName: Micro diff --git a/themes/default/layouts/partials/head.html b/themes/default/layouts/partials/head.html index ee72043..da9c04a 100644 --- a/themes/default/layouts/partials/head.html +++ b/themes/default/layouts/partials/head.html @@ -9,6 +9,9 @@ {{ hugo.Generator }} +{{ with .Site.Params.site.refresh -}} + +{{- end }} @@ -41,7 +44,7 @@ {{- $js := $index | resources.Minify | fingerprint -}} {{- $css := slice $default $syntax | resources.Concat "css/bundle.css" | resources.Minify | fingerprint -}} -{{ if .Site.Params.production }} +{{ if .Site.Params.site.production }} {{ else }} -- cgit v1.2.3