From 9cfcbabb032c729b06d581412a64a9e7cefed6b1 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 6 Oct 2025 19:22:14 +0200 Subject: style(format): install prettier and run --- backend/templates/404.html | 20 +++++++---------- backend/templates/base.html | 47 ++++++++++++++++++++++----------------- backend/templates/components.html | 41 ++++++++++++++++++---------------- backend/templates/home.html | 10 ++++----- backend/templates/home_log.html | 4 +--- backend/templates/log.html | 16 ++++++------- backend/templates/simple.html | 4 +--- 7 files changed, 70 insertions(+), 72 deletions(-) (limited to 'backend') diff --git a/backend/templates/404.html b/backend/templates/404.html index 0655652..e0bca68 100644 --- a/backend/templates/404.html +++ b/backend/templates/404.html @@ -1,15 +1,11 @@ {{ define "body" }}
-

Oh non, je crois que tu t'es perdu :(

-

- Tu as des liens en haut pour retrouver ton chemin :3 -

-

- Si tu penses que c'est un bug, hésite pas à ouvrir une issue sur - GitHub :D -

-

- (enfin, sauf si tu as un compte sur ma forge, mais ça m'étonnerait...) -

+

Oh non, je crois que tu t'es perdu :(

+

Tu as des liens en haut pour retrouver ton chemin :3

+

+ Si tu penses que c'est un bug, hésite pas à ouvrir une issue sur + GitHub :D +

+

(enfin, sauf si tu as un compte sur ma forge, mais ça m'étonnerait...)

-{{ end }} \ No newline at end of file +{{ end }} diff --git a/backend/templates/base.html b/backend/templates/base.html index 5e6982b..86e2f58 100644 --- a/backend/templates/base.html +++ b/backend/templates/base.html @@ -1,11 +1,12 @@ - - - + + + {{ .Title }} - {{ $styles := asset "styles.css" }} - + {{ $styles := asset "styles.css" }} + + @@ -15,7 +16,9 @@ - {{ if ne .PubDate "" }}{{ end }} + {{ if ne .PubDate "" }} + + {{ end }} @@ -23,18 +26,22 @@ - - -
- Logo - -
-{{ template "body" . }} - -{{ $script := asset "index.js" }} - + + +
+ Logo + +
+ {{ template "body" . }} + + {{ $script := asset "index.js" }} + + diff --git a/backend/templates/components.html b/backend/templates/components.html index 2b43579..da133a6 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -1,23 +1,26 @@ {{define "logs_display"}}
- {{ range .Logs }} - - {{ end }} - {{ if ne .PagesNumber 1 }} - - {{ end }} + {{ range .Logs }} + + {{ end }} {{ if ne .PagesNumber 1 }} + + {{ end }}
{{end}} diff --git a/backend/templates/home.html b/backend/templates/home.html index c570845..7a76e48 100644 --- a/backend/templates/home.html +++ b/backend/templates/home.html @@ -1,11 +1,9 @@ {{define "body"}}
-
+

logs

-

- {{ .PageDescription }} -

-
-{{ template "logs_display" . }} +

{{ .PageDescription }}

+
+ {{ template "logs_display" . }}
{{end}} diff --git a/backend/templates/home_log.html b/backend/templates/home_log.html index c57272c..485661c 100644 --- a/backend/templates/home_log.html +++ b/backend/templates/home_log.html @@ -1,5 +1,3 @@ {{define "body"}} -
-{{ template "logs_display" . }} -
+
{{ template "logs_display" . }}
{{end}} diff --git a/backend/templates/log.html b/backend/templates/log.html index 1dcf1bc..75e0a42 100644 --- a/backend/templates/log.html +++ b/backend/templates/log.html @@ -1,13 +1,11 @@ {{define "body"}}
-

{{ .LogTitle }}

-

- {{ .Description }} -

-
- {{ .Img.Alt }} -
{{ .Img.Legend }}
-
- {{ .Content }} +

{{ .LogTitle }}

+

{{ .Description }}

+
+ {{ .Img.Alt }} +
{{ .Img.Legend }}
+
+ {{ .Content }}
{{end}} diff --git a/backend/templates/simple.html b/backend/templates/simple.html index 7b4f6d3..94721df 100644 --- a/backend/templates/simple.html +++ b/backend/templates/simple.html @@ -1,5 +1,3 @@ {{ define "body" }} -
-{{ .Content }} -
+
{{ .Content }}
{{ end }} -- cgit v1.2.3