brainbaking/layouts/index.html

61 lines
2.9 KiB
HTML

{{ partial "header" . }}
<main class="intro">
<h1>
<span style="color: #9C7747">Brain</span>
<svg class="logo"><title>Brain Baking Logo</title><use xlink:href='#logo'></use></svg>
<span style="color: #694425">Baking</span>
</h1>
<div class="txtblock">
<hr />
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") $.Site.Params.pagination }}
{{ $currYear := .Date.Format "2006" }}
{{ if eq $paginator.PageNumber 1 }}
<h2><a href="/" alt="home"><svg class='icon'><title>home</title><use xlink:href='#book'></use></svg></a>Freshly Baked Thoughts</h2>
{{ end }}
<div class="list">
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
{{ if ne $currYear .Key }}
<h2>{{ .Key }}</h2>
{{ end }}
{{ range .Pages.GroupByDate "Jan" }}
<h3>{{ .Key }}</h3>
{{ partial "list-ul" . }}
{{ end }}
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
</div>
<div class="belowsingle">
<div class="txtblock">
<h2 class="page-header"><a href="/about" alt="go to the about page"><svg class='icon'><title>about me</title><use xlink:href='#about'></use></svg></a>About the Head Brain Baker</h2>
<article class="p-author h-card">
<div class="avatar">
<img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg" alt="A photo of Me!" />
</div>
<p class="p-note">
Hey! I'm <a class="p-name u-uid u-url" rel="me" href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>, a <em class="p-job-title">Brain Baker</em> living in <span class="p-locality">Belgium</span>. I currently find myself teaching, writing, programming, researching, and of course baking bread! <em>Brain Baking</em> is my way to inspire myself and others to ponder and learn. Read more <a class="u-url" href="about">about me here</a>.
</p>
<p>
If you found my bakings amusing and/or helpful, you can <a rel="me" href="https://ko-fi.com/woutergroeneveld"><strong>buy me a coffee</strong></a>—if you don't mind I'll use it to enjoy a cup of tea instead. I also like to hear about your own <em>bakings</em> via <svg class='icon icon-text'><title>chat icon</title><use xlink:href='#discuss'></use></svg><a rel="me" class="u-url" href="{{ .Site.Author.mastodonlink }}">Mastodon</a> or <svg class='icon icon-text'><title>mail icon</title><use xlink:href='#mail'></use></svg><span class="link meel">e-mail</span>. Thanks!
</p>
<hr/>
</article>
&nbsp;
</div>
</div>
</main>
<footer>
<p class="copyright text-muted">{{ .Site.Params.copyright | markdownify }}</p>
</footer>
</body>
</html>