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" . }}
</head>
<body>
{
<main>{{ block "main" . }}{{ end }}</main>
<footer>{{ partial "footer.html" . }}</footer>
}
{{ partial "ascii.html"}}
{{ block "main" . }}{{ end }}
{{ partial "ascii.html" . }}
</body>
</html>

View file

@ -1,39 +1,59 @@
{{ define "main" }}
<div class="one">
<div class="flex-row">
<span>title:</span>
<span class="highlight">'{{ .Site.Params.title }}'</span>
,
</div>
<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 />}
<p>{</p>
<main>
<div class="one">
<div class="flex-row">
<span>title:</span>
<span class="highlight">'{{ .Site.Params.title }}'</span>
,
</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 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>
{{ 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>
</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 }}

View file

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