From 52fc1f6956c6319931db18eb252aef7da5b6882c Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Thu, 2 Mar 2023 22:33:20 -0500 Subject: [PATCH] Move to 'journal' --- .../dispatch-1-march-2023.md | 2 ++ themes/v2/assets/css/style.scss | 1 + themes/v2/layouts/_default/list.html | 11 ---------- themes/v2/layouts/_default/single.html | 7 ------ themes/v2/layouts/index.html | 22 +++++++++++++------ themes/v2/layouts/journal/list.html | 12 ++++++++++ themes/v2/layouts/journal/single.html | 19 ++++++++++++++++ 7 files changed, 49 insertions(+), 25 deletions(-) rename content/{posts => journal}/dispatch-1-march-2023.md (98%) create mode 100644 themes/v2/layouts/journal/list.html create mode 100644 themes/v2/layouts/journal/single.html diff --git a/content/posts/dispatch-1-march-2023.md b/content/journal/dispatch-1-march-2023.md similarity index 98% rename from content/posts/dispatch-1-march-2023.md rename to content/journal/dispatch-1-march-2023.md index b3d16bf..59faa85 100644 --- a/content/posts/dispatch-1-march-2023.md +++ b/content/journal/dispatch-1-march-2023.md @@ -2,6 +2,8 @@ title: "Dispatch #1 (March 2023)" date: 2023-03-02T12:18:17-05:00 draft: false +tags: +- dispatch --- With the warm winter we've been having in NC, I've gotten to take Nev to and from daycare on the e-bike a whole bunch, which has been just fantastic. I'm wary of becoming too much of an evangelist, but it really does feel like they can replace cars for a lot of folks, and they're fun as hell. diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss index 327c386..f6cc61f 100644 --- a/themes/v2/assets/css/style.scss +++ b/themes/v2/assets/css/style.scss @@ -2,6 +2,7 @@ body { font-family: monospace; font-size: 18px; padding: 50px; + line-height: 1.5em; } h1, h2, h3 { diff --git a/themes/v2/layouts/_default/list.html b/themes/v2/layouts/_default/list.html index 700faa4..8b13789 100644 --- a/themes/v2/layouts/_default/list.html +++ b/themes/v2/layouts/_default/list.html @@ -1,12 +1 @@ -{{ define "main" }} -
-
- {{ range (where .Site.RegularPages "Type" "in" "posts") }} -

- {{ .Title }} - {{ .Date | time.Format "(2006-01-02)" }} -

- {{ end }} -
-{{ end }} diff --git a/themes/v2/layouts/_default/single.html b/themes/v2/layouts/_default/single.html index 7db3bda..8b13789 100644 --- a/themes/v2/layouts/_default/single.html +++ b/themes/v2/layouts/_default/single.html @@ -1,8 +1 @@ -{{ define "main" }} -
-

{{ .Title }}

-

{{ .Date | time.Format "2006-01-02" }}

- - {{ .Content }} -{{ end }} diff --git a/themes/v2/layouts/index.html b/themes/v2/layouts/index.html index 3dd9b61..42fb090 100644 --- a/themes/v2/layouts/index.html +++ b/themes/v2/layouts/index.html @@ -4,14 +4,22 @@

- {{ range (where .Site.RegularPages "Type" "in" "posts") }} -

- {{ .Title }} - {{ .Date | time.Format "(2006-01-02)" }} -

+

+ Journal +

- {{ .Summary }} - {{ end }} +
{{- partial "pinboard.html" . -}} diff --git a/themes/v2/layouts/journal/list.html b/themes/v2/layouts/journal/list.html new file mode 100644 index 0000000..e4dacc1 --- /dev/null +++ b/themes/v2/layouts/journal/list.html @@ -0,0 +1,12 @@ +{{ define "main" }} +
+
+ + {{ range (where .Site.RegularPages "Type" "in" "journal") }} +

+ {{ .Title }} + {{ .Date | time.Format "(2006-01-02)" }} +

+ {{ end }} +
+{{ end }} diff --git a/themes/v2/layouts/journal/single.html b/themes/v2/layouts/journal/single.html new file mode 100644 index 0000000..4ce0ed5 --- /dev/null +++ b/themes/v2/layouts/journal/single.html @@ -0,0 +1,19 @@ +{{ define "main" }} +
+ +

{{ .Title }}

+ +

+ Posted {{ .Date | time.Format "January 1, 2006" }} + + {{ if .Params.tags }} + under + + {{ range .Params.tags }} + #{{ . }} + {{ end }} + {{ end }} +

+ + {{ .Content }} +{{ end }}