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

@@ -108,6 +108,11 @@ code {
white-space: nowrap;
}
img {
width: 100%;
height: auto;
}
.image-set {
display: flex;
gap: 1em;
@@ -117,11 +122,6 @@ code {
figure {
line-height: 0;
}
img {
width: 100%;
height: auto;
}
}
.references, .footnotes {
@@ -135,3 +135,19 @@ code {
margin-top: 0.5em;
}
}
.highlight, pre {
overflow: auto;
code {
background: none;
padding: 0;
border-radius: 0;
}
}
pre {
background-color: #ddd;
padding: 1ch 1ch;
border-radius: 3px;
}

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 }}