update main block, option to change ascii art

This commit is contained in:
brooke 2024-06-16 16:13:48 -04:00
parent 7a7fac3cd6
commit d1f5684800
4 changed files with 61 additions and 53 deletions

View file

@ -7,10 +7,7 @@
{{ partial "head.html" . }} {{ partial "head.html" . }}
</head> </head>
<body> <body>
{ {{ block "main" . }}{{ end }}
<main>{{ block "main" . }}{{ end }}</main> {{ partial "ascii.html" . }}
<footer>{{ partial "footer.html" . }}</footer>
}
{{ partial "ascii.html"}}
</body> </body>
</html> </html>

View file

@ -1,39 +1,59 @@
{{ define "main" }} {{ define "main" }}
<div class="one"> <p>{</p>
<div class="flex-row"> <main>
<span>title:</span> <div class="one">
<span class="highlight">'{{ .Site.Params.title }}'</span> <div class="flex-row">
, <span>title:</span>
</div> <span class="highlight">'{{ .Site.Params.title }}'</span>
<div class="flex-row"> ,
<span>body:</span>
<span> <span class="highlight">'{{ .Site.Params.body }}'</span>, </span>
</div>
<span class="flex-col"
>"Q & A": [ {{ range .Site.Params.faq }}
<div class="two">
{<br />
<div class="three">
<span>Q:</span>
<span class="highlight">'{{ .question }}'</span>,<br />
<span>A:</span>
<span class="highlight">'{{ .answer }}'</span>
</div>
<br />}
</div> </div>
{{ end }} ],</span <div class="flex-row">
> <span>body:</span>
<span class="flex-col" <span> <span class="highlight">'{{ .Site.Params.body }}'</span>, </span>
>contact: {
<div class="two">
{{ range .Site.Params.contact }}
<div class="three">
<span>"{{ .service }}":</span>
<span class="highlight">'{{ .input }}'</span><br />
</div>
{{ end }}
</div> </div>
}, <span class="flex-col"
>"Q & A": [ {{ range .Site.Params.faq }}
<div class="two">
{<br />
<div class="three">
<span>Q:</span>
<span class="highlight">'{{ .question }}'</span>,<br />
<span>A:</span>
<span class="highlight">'{{ .answer }}'</span>
</div>
<br />}
</div>
{{ end }} ],</span
>
<span class="flex-col"
>contact: {
<div class="two">
{{ range .Site.Params.contact }}
<div class="three">
<span>"{{ .service }}":</span>
<span class="highlight">'{{ .input }}'</span><br />
</div>
{{ end }}
</div>
},
</span>
</div>
</main>
<footer class="one">
<span>
license:
<a class="highlight" href="https://creativecommons.org/licenses/by-sa/4.0"
>'CC BY-SA 4.0'</a
>,
</span> </span>
</div> <span>
"source code": '<a
class="highlight"
href="https://git.myco.systems/mycosystems/hugo-maintenance"
>'https://git.myco.systems/mycosystems/hugo-maintenance'</a
>
</span>
</footer>
<p>}</p>
{{ end }} {{ end }}

View file

@ -1,3 +1,4 @@
{{ if eq .Site.Params.asciiArt 1 }}
<pre> <pre>
__..--''``---....___ _..._ __ __..--''``---....___ _..._ __
/// //_.-' .-/"; ` ``<._ ``.''_ `. / // / /// //_.-' .-/"; ` ``<._ ``.''_ `. / // /
@ -6,11 +7,13 @@
/ // // // `-._,_)' // / ``--...____..-' /// / // / // // // `-._,_)' // / ``--...____..-' /// / //
Ascii Art by: Felix Lee Ascii Art by: Felix Lee
</pre> </pre>
{{ end }}
{{ if eq .Site.Params.asciiArt 2 }}
<pre> <pre>
|\ _,,,---,,_ |\ _,,,---,,_
ZZZzz /,`.-'`' -. ;-;;,_ ZZZzz /,`.-'`' -. ;-;;,_
|,4- ) )-,_. ,\ ( `'-' |,4- ) )-,_. ,\ ( `'-'
'---''(_/--' `-'\_) '---''(_/--' `-'\_)
Ascii Art by: Felix Lee Ascii Art by: Felix Lee
</pre> </pre>
{{ end }}

View file

@ -1,12 +0,0 @@
<div class="one">
<span>
license: <a class="highlight" href="https://creativecommons.org/licenses/by-sa/4.0"
>'CC BY-SA 4.0'</a
>,
</span>
<span>
"source code": '<a class="highlight" href="https://git.myco.systems/mycosystems/hugo-maintenance"
>'https://git.myco.systems/mycosystems/hugo-maintenance'</a
>
</span>
</div>