Move to 'journal'

This commit is contained in:
David Eisinger
2023-03-02 22:33:20 -05:00
parent 5db4be1d70
commit 52fc1f6956
7 changed files with 49 additions and 25 deletions

View File

@@ -2,6 +2,7 @@ body {
font-family: monospace;
font-size: 18px;
padding: 50px;
line-height: 1.5em;
}
h1, h2, h3 {

View File

@@ -1,12 +1 @@
{{ define "main" }}
<section>
<hr>
{{ range (where .Site.RegularPages "Type" "in" "posts") }}
<h3>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date | time.Format "(2006-01-02)" }}
</h3>
{{ end }}
</section>
{{ end }}

View File

@@ -1,8 +1 @@
{{ define "main" }}
<hr>
<h2>{{ .Title }}</h2>
<h3>{{ .Date | time.Format "2006-01-02" }}</h3>
{{ .Content }}
{{ end }}

View File

@@ -4,14 +4,22 @@
<section>
<hr>
{{ range (where .Site.RegularPages "Type" "in" "posts") }}
<h3>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date | time.Format "(2006-01-02)" }}
</h3>
<h3>
<a href="/journal">Journal</a>
</h3>
{{ .Summary }}
{{ end }}
<ul>
{{ range (where .Site.RegularPages "Type" "in" "journal") }}
<li>
<p>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date | time.Format "(2006-01-02)" }}
</p>
{{ .Summary }}
</li>
{{ end }}
</ul>
</section>
{{- partial "pinboard.html" . -}}

View File

@@ -0,0 +1,12 @@
{{ define "main" }}
<section>
<hr>
{{ range (where .Site.RegularPages "Type" "in" "journal") }}
<h3>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ .Date | time.Format "(2006-01-02)" }}
</h3>
{{ end }}
</section>
{{ end }}

View File

@@ -0,0 +1,19 @@
{{ define "main" }}
<hr>
<h2>{{ .Title }}</h2>
<h3>
Posted {{ .Date | time.Format "January 1, 2006" }}
{{ if .Params.tags }}
under
{{ range .Params.tags }}
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
{{ end }}
</h3>
{{ .Content }}
{{ end }}