personal-site/layouts/partials/header.html

41 lines
2.5 KiB
HTML
Raw Normal View History

2021-06-06 15:38:33 +00:00
2021-09-26 11:58:27 +00:00
{{$horhik := "░█░█░▀█▀░░░░░░░▀█▀░▀░█▄█░░░█▀█░░░█░█░█▀█░█▀▄░█░█░▀█▀░█░█\n░█▀█░░█░░░░░░░░░█░░░░█░█░░░█▀█░░░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄\n░▀░▀░▀▀▀░▄▀░░░░▀▀▀░░░▀░▀░░░▀░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀"}}
2021-11-13 17:32:10 +00:00
{{$home := "░█▄█░█▀█░▀█▀░█▀█░▄▀░░▀▄░\n░█░█░█▀█░░█░░█░█░█░░░░█░\n░▀░▀░▀░▀░▀▀▀░▀░▀░░▀░░▀░░"}}
2021-06-06 16:38:42 +00:00
{{$portfolio := "░█▀█░█▀█░█▀▄░▀█▀░█▀▀░█▀█░█░░░▀█▀░█▀█\n░█▀▀░█░█░█▀▄░░█░░█▀▀░█░█░█░░░░█░░█░█\n░▀░░░▀▀▀░▀░▀░░▀░░▀░░░▀▀▀░▀▀▀░▀▀▀░▀▀"}}
{{$blog := "░█▀▄░█░░░█▀█░█▀▀\n ░█▀▄░█░░░█░█░█░█\n ░▀▀░░▀▀▀░▀▀▀░▀▀▀"}}
2021-11-13 17:22:02 +00:00
{{$music := "░█▄█░█░█░█▀▀░▀█▀░█▀▀\n░█░█░█░█░▀▀█░░█░░█░░\n░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀"}}
2021-06-06 16:38:42 +00:00
{{$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}}
2021-09-26 11:58:27 +00:00
<!-- <span class="logo-quote">O. Georges works</span> -->
2021-06-06 16:38:42 +00:00
{{else if eq .Section "posts"}}
{{$blog}}
2021-11-13 17:22:02 +00:00
{{else if eq .Section "music"}}
{{$music}}
2021-09-26 11:58:27 +00:00
<!--<span class="logo-quote">O. Georges thoughts</span> -->
2021-06-06 16:38:42 +00:00
{{else}}
{{$horhik}}
2021-09-26 11:58:27 +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-11-13 17:22:02 +00:00
{{ else if eq (title .Section) "Music"}}{{$music}}
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"}}
2021-11-13 17:32:10 +00:00
<li class="page-link"><a href="{{.Site.BaseURL}}">
{{$home}}
</a></li>
2021-06-06 15:38:33 +00:00
{{end}}
2021-01-02 20:17:33 +00:00
</ul>
</nav>
</header>