Files
davideisinger.com/themes/v2/layouts/index.html
2025-11-04 00:40:29 -05:00

76 lines
1.6 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.
{{ define "main" }}
{{ .Content }}
<ul>
{{ $recentDispatch := first 1 (where .Site.RegularPages "Params.tags" "intersect" (slice "dispatch")) }}
{{ with index $recentDispatch 0 }}
<li>
<a href="{{ .Permalink }}">Read the latest dispatch</a>
</li>
{{ end }}
<li>
<a href="/music">Music Ive made</a>
</li>
<li>
<a href="https://dispatch.davideisinger.com/subscription/form">Subscribe via email</a>
</li>
<li>
<a href="/about">More about me</a>
</li>
</ul>
<section>
<hr>
<h3>
<a href="/journal/">Journal</a>
</h3>
<ul>
{{ range first 5 (where .Site.RegularPages "Type" "in" "journal") }}
<li>
<p>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<span class="nowrap">
{{ .Date | time.Format "(2006-01-02)" }}
</span>
</p>
{{ .Summary }}
</li>
{{ end }}
</ul>
</section>
<section>
<hr>
<h3>
<a href="/elsewhere/">Elsewhere</a>
</h3>
<ul>
{{ range where (where .Site.RegularPages "Type" "in" "elsewhere") "Params.featured" "=" true }}
{{ $url := urls.Parse .Params.canonical_url }}
{{ $host := strings.Replace $url.Hostname "www." "" }}
<li>
<p>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<span class="nowrap">
(<a href="{{ $url }}">{{ $host }}</a>, {{ .Date | time.Format "2006-01-02" }})
</span>
</p>
{{ .Summary }}
</li>
{{ end }}
</ul>
</section>
{{- partial "marky.html" . -}}
{{ end }}