From d1f5684800527cd4c55849807e0122cac0e3159d Mon Sep 17 00:00:00 2001 From: brooke Date: Sun, 16 Jun 2024 16:13:48 -0400 Subject: [PATCH] update main block, option to change ascii art --- layouts/_default/baseof.html | 7 +-- layouts/_default/home.html | 88 ++++++++++++++++++++++-------------- layouts/partials/ascii.html | 7 ++- layouts/partials/footer.html | 12 ----- 4 files changed, 61 insertions(+), 53 deletions(-) delete mode 100644 layouts/partials/footer.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9d6188f..a8f6188 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,10 +7,7 @@ {{ partial "head.html" . }} - { -
{{ block "main" . }}{{ end }}
- - } - {{ partial "ascii.html"}} + {{ block "main" . }}{{ end }} + {{ partial "ascii.html" . }} diff --git a/layouts/_default/home.html b/layouts/_default/home.html index a9c4c4d..f036705 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -1,39 +1,59 @@ {{ define "main" }} -
-
- title: - '{{ .Site.Params.title }}' - , -
-
- body: - '{{ .Site.Params.body }}', -
- "Q & A": [ {{ range .Site.Params.faq }} -
- {
-
- Q: - '{{ .question }}',
- A: - '{{ .answer }}' -
-
} +

{

+
+
+
+ title: + '{{ .Site.Params.title }}' + ,
- {{ end }} ], - contact: { -
- {{ range .Site.Params.contact }} -
- "{{ .service }}": - '{{ .input }}'
-
- {{ end }} +
+ body: + '{{ .Site.Params.body }}',
- }, + "Q & A": [ {{ range .Site.Params.faq }} +
+ {
+
+ Q: + '{{ .question }}',
+ A: + '{{ .answer }}' +
+
} +
+ {{ end }} ],
+ contact: { +
+ {{ range .Site.Params.contact }} +
+ "{{ .service }}": + '{{ .input }}'
+
+ {{ end }} +
+ }, +
+
+
+ +
+ + "source code": ''https://git.myco.systems/mycosystems/hugo-maintenance' + + +

}

{{ end }} diff --git a/layouts/partials/ascii.html b/layouts/partials/ascii.html index 6465956..4876af4 100644 --- a/layouts/partials/ascii.html +++ b/layouts/partials/ascii.html @@ -1,3 +1,4 @@ +{{ if eq .Site.Params.asciiArt 1 }}
   __..--''``---....___   _..._    __
   /// //_.-'    .-/";  `        ``<._  ``.''_ `. / // /
@@ -6,11 +7,13 @@
   / // // //  `-._,_)' // / ``--...____..-' /// / //
                             Ascii Art by: Felix Lee
 
- +{{ end }} +{{ if eq .Site.Params.asciiArt 2 }}
   |\      _,,,---,,_
   ZZZzz /,`.-'`'    -.  ;-;;,_
        |,4-  ) )-,_. ,\ (  `'-'
       '---''(_/--'  `-'\_)
-        Ascii Art by: Felix Lee 
+      Ascii Art by: Felix Lee 
 
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 327aaf4..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,12 +0,0 @@ -