From 5db4be1d70e6189e885f62afa89b4b4d642c65af Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Thu, 2 Mar 2023 12:39:47 -0500 Subject: [PATCH] Add blog posts (+ write first one) --- archetypes/dispatch.md | 24 ++++++++++++++++++++++++ content/_index.md | 2 +- content/posts/dispatch-1-march-2023.md | 26 ++++++++++++++++++++++++++ themes/v2/assets/css/style.scss | 3 ++- themes/v2/layouts/_default/list.html | 12 ++++++++++++ themes/v2/layouts/_default/single.html | 8 ++++++++ themes/v2/layouts/index.html | 13 +++++++++++++ themes/v2/layouts/partials/footer.html | 1 + 8 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 archetypes/dispatch.md create mode 100644 content/posts/dispatch-1-march-2023.md diff --git a/archetypes/dispatch.md b/archetypes/dispatch.md new file mode 100644 index 0000000..5c07a04 --- /dev/null +++ b/archetypes/dispatch.md @@ -0,0 +1,24 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: false +--- + +Some thoughts here ... + +**Adventure:** + +**Project:** + +**Skill:** + +**Reading:** + +* **Fiction:** +* **Non-fiction:** + +**Links:** + +* Blah +* Blah +* Blah diff --git a/content/_index.md b/content/_index.md index c4e7471..ce63dba 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,4 +1,4 @@ -## Software Developer, Durham NC +### Software Developer, Durham NC I'm David, Development Director at [Viget][1]. Just getting started with a new [Hugo][2] site. More to come. diff --git a/content/posts/dispatch-1-march-2023.md b/content/posts/dispatch-1-march-2023.md new file mode 100644 index 0000000..b3d16bf --- /dev/null +++ b/content/posts/dispatch-1-march-2023.md @@ -0,0 +1,26 @@ +--- +title: "Dispatch #1 (March 2023)" +date: 2023-03-02T12:18:17-05:00 +draft: false +--- + +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. + + + +This month: + +* Adventure: glamping with Claire, Nev, and Steve +* Project: rebuild shelves in bedroom closet +* Skill: [Affinity Designer](https://affinity.serif.com/en-us/designer/) + +Reading: + +* Fiction: [_Burner_](https://bookshop.org/p/books/burner-mark-greaney/18519742), Mark Greaney +* Non-fiction: [_The Power of Habit_](https://bookshop.org/p/books/the-power-of-habit-why-we-do-what-we-do-in-life-and-business-charles-duhigg/7843601), Charles Duhigg + +Links: + +* [Electric Bike, Stupid Love of My Life — by Craig Mod](https://craigmod.com/essays/electric_bikes/) +* [Programming is a Pop Culture – Baldur Bjarnason](https://www.baldurbjarnason.com/2022/programming-is-a-pop-culture/) +* [Julia Cameron Wants You to Do Your Morning Pages - The New York Times](https://www.nytimes.com/2019/02/02/style/julia-cameron-the-artists-way.html) diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss index dacfeac..327c386 100644 --- a/themes/v2/assets/css/style.scss +++ b/themes/v2/assets/css/style.scss @@ -6,9 +6,10 @@ body { h1, h2, h3 { font-size: 1em; + margin: 1em 0; } -h2, h3 { +h3 { color: #aaa; } diff --git a/themes/v2/layouts/_default/list.html b/themes/v2/layouts/_default/list.html index e69de29..700faa4 100644 --- a/themes/v2/layouts/_default/list.html +++ b/themes/v2/layouts/_default/list.html @@ -0,0 +1,12 @@ +{{ 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 e69de29..7db3bda 100644 --- a/themes/v2/layouts/_default/single.html +++ b/themes/v2/layouts/_default/single.html @@ -0,0 +1,8 @@ +{{ 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 7e14402..3dd9b61 100644 --- a/themes/v2/layouts/index.html +++ b/themes/v2/layouts/index.html @@ -1,5 +1,18 @@ {{ define "main" }} {{ .Content }} +
+
+ + {{ range (where .Site.RegularPages "Type" "in" "posts") }} +

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

+ + {{ .Summary }} + {{ end }} +
+ {{- partial "pinboard.html" . -}} {{ end }} diff --git a/themes/v2/layouts/partials/footer.html b/themes/v2/layouts/partials/footer.html index 539a683..2ad0b9a 100644 --- a/themes/v2/layouts/partials/footer.html +++ b/themes/v2/layouts/partials/footer.html @@ -1,4 +1,5 @@