From 33cfc1d4e8f3b5b55202588e5b5148a48b43d427 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 5 Oct 2025 22:40:28 +0200 Subject: refactor(backend): generalize file parsing --- backend/templates/base.html | 6 +++--- backend/templates/components.html | 6 ++---- backend/templates/home.html | 2 +- backend/templates/log.html | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) (limited to 'backend/templates') diff --git a/backend/templates/base.html b/backend/templates/base.html index 3af37f9..5e6982b 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -6,13 +6,13 @@ {{ .Title }} {{ $styles := asset "styles.css" }} - + - + {{ if ne .PubDate "" }}{{ end }} @@ -21,7 +21,7 @@ - + diff --git a/backend/templates/components.html b/backend/templates/components.html index cb0fb12..280fa3d 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -2,14 +2,12 @@
{{ range .Logs }} {{ end }} {{ if ne .PagesNumber 1 }} diff --git a/backend/templates/home.html b/backend/templates/home.html index de9d2af..c570845 100644 --- a/backend/templates/home.html +++ b/backend/templates/home.html @@ -3,7 +3,7 @@

logs

- {{ .Description }} + {{ .PageDescription }}

{{ template "logs_display" . }} diff --git a/backend/templates/log.html b/backend/templates/log.html index f872631..47a5d04 100644 --- a/backend/templates/log.html +++ b/backend/templates/log.html @@ -1,6 +1,6 @@ {{define "body"}}
-

{{ .LogTitle }}

+

{{ .Title }}

{{ .Description }}

-- cgit v1.2.3