personal-site/layouts/partials/header.html

34 lines
1.8 KiB
HTML
Raw Normal View History

2021-06-06 15:38:33 +00:00
2021-06-06 16:38:42 +00:00
{{$horhik := "░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█\n░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░\n░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀"}}
{{$portfolio := "░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█\n░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█\n░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀"}}
{{$blog := "░█▀▄░█░░░█▀█░█▀▀\n ░█▀▄░█░░░█░█░█░█\n ░▀▀░░▀▀▀░▀▀▀░▀▀▀"}}
{{$sec := .FirstSection}}
2021-01-02 22:35:28 +00:00
<header class="logo--wrapper">
2021-06-06 16:38:42 +00:00
<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}}
2021-01-02 22:35:28 +00:00
<span class="logo-quote">O. Georges site</span>
2021-06-06 16:38:42 +00:00
{{end}}
</pre></a>
2021-01-02 20:17:33 +00:00
<nav>
2021-06-06 13:24:27 +00:00
<ul class="page-list">
{{ range .Site.Sections }}
<li class="page-link"><a href="{{ .URL | relURL }}">
2021-06-06 16:38:42 +00:00
{{ if eq (title .Section) "Portfolio" }}{{$portfolio}}
2021-06-06 15:38:33 +00:00
{{ else if eq (title .Section) "Posts"}}{{$blog}}
2021-06-06 13:24:27 +00:00
{{end}}
</a></li>
2021-01-02 20:17:33 +00:00
{{ end }}
2021-06-06 15:38:33 +00:00
{{if ne (title .FirstSection) "Horhik.xyz"}}
<li class="page-link"><a href="{{.Site.BaseURL}}">{{$horhik}}</a></li>
{{end}}
2021-01-02 20:17:33 +00:00
</ul>
</nav>
</header>