personal-site/layouts/partials/header.html
2021-09-26 14:58:27 +03:00

35 lines
2.2 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░█░█░█▀█░░█░░█░█░█░░░░█░\n░▀░▀░▀░▀░▀▀▀░▀░▀░░▀░░▀░░"}}
{{$portfolio := "░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█\n░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█\n░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀"}}
{{$blog := "░█▀▄░█░░░█▀█░█▀▀\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}}
<!--<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}}
{{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>