Pull in Viget posts

This commit is contained in:
David Eisinger
2023-10-22 23:52:56 -04:00
parent 625d374135
commit 0438a6d828
77 changed files with 8219 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
{{ define "main" }}
<section>
<hr>
<h3>Elsewhere</h3>
<ul>
{{ range (where .Site.RegularPages "Type" "in" "elsewhere") }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date | time.Format "(2006-01-02)" }}
{{ if .Params.needs_review }}<b>NEEDS REVIEW</b>{{ end }}
</li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ define "main" }}
{{ $url := urls.Parse .Params.canonical_url }}
<hr>
<h2>{{ .Title }}</h2>
<h3>
Posted {{ .Date | time.Format "2006-01-02" }}
on <a href="{{ .Params.canonical_url }}">{{ $url.Hostname }}</a>
</h3>
{{ .Content }}
{{ end }}