From 426abea821cc8529dbefd5c607a74f71d50cf1fe Mon Sep 17 00:00:00 2001 From: Kay Strobach Date: Thu, 16 Dec 2021 19:09:48 +0100 Subject: [TASK] add xml declaration to provide clean xml code for all readers --- layouts/index.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'layouts') diff --git a/layouts/index.xml b/layouts/index.xml index c8bce41..7219b4b 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -1,4 +1,5 @@ {{ if not .Site.Params.disableIncidentHistory }} + {{ if eq .Params.severity "notice" }} - + ◆ {{ if .Date.Before now }} {{ T "downtimeOngoing" }} -- cgit v1.2.3-70-g09d2 From 9b1da2a4626f0b6f1db9c2d8178306df3be6486c Mon Sep 17 00:00:00 2001 From: aperullo Date: Mon, 27 Dec 2021 12:08:03 -0500 Subject: add optional external link button --- exampleSite/config.yml | 4 ++++ layouts/partials/index/components.html | 8 ++++++++ layouts/partials/meta.html | 5 +++++ 3 files changed, 17 insertions(+) (limited to 'layouts') diff --git a/exampleSite/config.yml b/exampleSite/config.yml index b270320..f968d0b 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -162,6 +162,10 @@ params: category: North Coast - name: Backup Gateway category: North Coast + - name: Website + description: The web frontend for the application. + category: Uncategorized + link: https://example.com/ - name: API description: The guts of the application. category: Uncategorized diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index d3d67bd..835c523 100644 --- a/layouts/partials/index/components.html +++ b/layouts/partials/index/components.html @@ -65,6 +65,14 @@ {{ end }} + {{ with .link }} + + + 🔗 + + + {{ end }} + {{ if $thisIsDown }} {{ T "thisIsDown" }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 0e8725b..279857c 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -115,6 +115,11 @@ .padding { padding: 12px; } .clicky { cursor: pointer; } + .link-style { border: none; } + .span-icon { + float: right; + margin-left: 16px; + } /** * Categories -- cgit v1.2.3-70-g09d2 From 2a4441d1989da3b90de0b21237dc0119482eb53d Mon Sep 17 00:00:00 2001 From: Kay Strobach Date: Thu, 3 Feb 2022 17:10:11 +0100 Subject: [BUGFIX] avoid escaping the xml prolugue in index.html #226 --- layouts/index.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/index.xml b/layouts/index.xml index 7219b4b..89f76b0 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -1,5 +1,5 @@ {{ if not .Site.Params.disableIncidentHistory }} - +{{- printf "" | safeHTML }}