personal-site/layouts/partials/header.html
2021-11-13 12:32:10 -05:00

41 lines
2.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{$horhik := "░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█\n░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄\n░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀"}}
{{$home := "░█▄█░█▀█░▀█▀░█▀█░▄▀░░▀▄░\n░█░█░█▀█░░█░░█░█░█░░░░█░\n░▀░▀░▀░▀░▀▀▀░▀░▀░░▀░░▀░░"}}
{{$portfolio := "░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█\n░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█\n░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀"}}
{{$blog := "░█▀▄░█░░░█▀█░█▀▀\n ░█▀▄░█░░░█░█░█░█\n ░▀▀░░▀▀▀░▀▀▀░▀▀▀"}}
{{$music := "░█▄█░█░█░█▀▀░▀█▀░█▀▀\n░█░█░█░█░▀▀█░░█░░█░░\n░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀"}}
{{$sec := .FirstSection}}
<header class="logo--wrapper">
<a href="{{ .Page.URL }}"><pre class="logo toilet-logo" title="Home">{{if eq .Section "portfolio"}}
{{$portfolio}}
<!-- <span class="logo-quote">O. Georges works</span> -->
{{else if eq .Section "posts"}}
{{$blog}}
{{else if eq .Section "music"}}
{{$music}}
<!--<span class="logo-quote">O. Georges thoughts</span> -->
{{else}}
{{$horhik}}
<!-- <span class="logo-quote">O. Georges site</span> -->
{{end}}
</pre></a>
<nav>
<ul class="page-list">
{{ range .Site.Sections }}
<li class="page-link"><a href="{{ .URL | relURL }}">
{{ if eq (title .Section) "Portfolio" }}{{$portfolio}}
{{ else if eq (title .Section) "Posts"}}{{$blog}}
{{ else if eq (title .Section) "Music"}}{{$music}}
{{end}}
</a></li>
{{ end }}
{{if ne (title .FirstSection) "Horhik.xyz"}}
<li class="page-link"><a href="{{.Site.BaseURL}}">
{{$home}}
</a></li>
{{end}}
</ul>
</nav>
</header>