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