Skip to content

Commit

Permalink
Fix alerts section - dots upsetting parsing- and improve formatting r…
Browse files Browse the repository at this point in the history
  • Loading branch information
phillxnet committed Oct 28, 2021
1 parent b7162d9 commit c8bc162
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
9 changes: 4 additions & 5 deletions archetypes/sysalerts.md
Original file line number Diff line number Diff line change
@@ -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 >}}
{{< param title >}}
is currently down for maintenance. Normal service expected by:
4 changes: 3 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 0 additions & 9 deletions content/sysalerts/appman.md

This file was deleted.

9 changes: 0 additions & 9 deletions content/sysalerts/forum.md

This file was deleted.

4 changes: 3 additions & 1 deletion layouts/partials/sysalerts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<div class="row">
<div class="col-md-8 col-md-offset-2">
{{ range .Pages }}
<h2 style="color:#EB6841; font-size:28px; text-align:center;">{{ .Title }}{{ .Content }}</h2>
<h3 style="color:#EB6841; font-size:28px; text-align:center;">{{ .Content }}{{ .Params.back_by | time.Format ":date_long" }}
{{ .Params.back_by | time.Format ":time_long" }}
</h3>
{{ end }}
</div>
</div>
Expand Down

0 comments on commit c8bc162

Please sign in to comment.