extroonie.com/layouts/index.html

41 lines
1.4 KiB
HTML
Raw Normal View History

2026-09-18 15:30:20 -07:00
{{ define "main" }}
<div class="shell">
<section class="intro" aria-label="Introduction">
<p>{{ partial "text.html" .Params.introduction }}</p>
{{ partial "contacts.html" . }}
<details class="biography" id="about">
<summary>
<span class="more-label">More about me…</span><span class="less-label">Less about me</span>
</summary>
<div class="biography-content">
<div class="contents">
<span>Contents</span>{{ .Store.Get "contents" }}
</div>
<div class="prose home-prose">{{ .Content }}</div>
</div>
</details>
</section>
{{ $writing := partialCached "writing.html" . }}
{{ range slice (dict "kind" "post" "title" "Posts" "id" "posts") (dict "kind" "essay" "title" "Essays" "id" "essays") }}
{{ $pages := where $writing "Params.format" .kind }}
{{ if $pages }}
<section class="writing-section" aria-labelledby="{{ .id }}">
<div class="section-heading">
<h2 id="{{ .id }}" tabindex="-1">
<a class="heading-link" href="#{{ .id }}"
>{{ .title }}<span class="heading-anchor" aria-hidden="true">#</span></a
>
</h2>
<a class="rss-link" href="/writing/{{ .id }}/rss.xml" aria-label="{{ .title }} RSS feed">RSS</a>
</div>
<ul class="writing-list">
{{ range $pages.ByDate.Reverse }}
<li><a href="{{ .RelPermalink }}">{{ partial "text.html" .Title }}</a></li>
{{ end }}
</ul>
</section>
{{ end }}
{{ end }}
</div>
{{ end }}