Misc. updates & reorganization

This commit is contained in:
David Eisinger
2023-10-24 20:49:29 -04:00
parent 1ed0f8128e
commit bb65a3d80f
14 changed files with 93 additions and 26 deletions

View File

@@ -9,7 +9,7 @@
</h3>
<ul>
{{ range (where .Site.RegularPages "Type" "in" "journal") }}
{{ range first 5 (where .Site.RegularPages "Type" "in" "journal") }}
<li>
<p>
<a href="{{ .Permalink }}">{{ .Title }}</a>
@@ -22,5 +22,31 @@
</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 "pinboard.html" . -}}
{{ end }}