diff --git a/archetypes/sysalerts.md b/archetypes/sysalerts.md index 6b44d5c..a5d9e68 100644 --- a/archetypes/sysalerts.md +++ b/archetypes/sysalerts.md @@ -1,10 +1,9 @@ --- title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} -back_by: {{ now.AddDate 0 0 1}} draft: true +#add years months days +back_by: {{ now.AddDate 0 0 1 }} --- - -{{< param .title >}} -is currently down for maintenance. Normal service expected by -{{< param .back_by >}} \ No newline at end of file +{{< param title >}} +is currently down for maintenance. Normal service expected by: diff --git a/config.toml b/config.toml index 8f67676..fb5fc21 100644 --- a/config.toml +++ b/config.toml @@ -6,7 +6,9 @@ title = 'Rockstor | Linux & BTRFS powered Opensource NAS solution' # https://gohugo.io/getting-started/configuration/#cascade # allows PageRef instead of url in menu items. # https://gohugo.io/variables/menus/#menu-entry-variables -min_version = "0.86.0" +# Localized Time and Dates and Numbers +# https://gohugo.io/news/0.87.0-relnotes/ +min_version = "0.87.0" enableInlineShortcodes = true # We are creating like-for-like from prior Hyde created site so maintain: diff --git a/content/sysalerts/appman.md b/content/sysalerts/appman.md deleted file mode 100644 index 5a830e8..0000000 --- a/content/sysalerts/appman.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "Appman" -date: 2021-10-27T15:59:54+01:00 -draft: true ---- - -{{< param .Title >}} -is currently down for maintenance. Normal service expected by -{{< param .back_by >}} diff --git a/content/sysalerts/forum.md b/content/sysalerts/forum.md deleted file mode 100644 index f356e3e..0000000 --- a/content/sysalerts/forum.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: "Forum" -date: 2021-10-27T17:06:17+01:00 -draft: true ---- - -{{< param .Title >}} -is currently down for maintenance. Normal service expected by -{{< param .back_by >}} diff --git a/layouts/partials/sysalerts.html b/layouts/partials/sysalerts.html index 633ee36..4795a3d 100644 --- a/layouts/partials/sysalerts.html +++ b/layouts/partials/sysalerts.html @@ -3,7 +3,9 @@
{{ range .Pages }} -

{{ .Title }}{{ .Content }}

+

{{ .Content }}{{ .Params.back_by | time.Format ":date_long" }} + {{ .Params.back_by | time.Format ":time_long" }} +

{{ end }}