diff --git a/archetypes/default.md b/archetypes/default.md index 07f36a1..cdc869f 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,16 +1,11 @@ --- -title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} -draft: true -tags: -summary: -tocOpen: true -cover: - image: "/images/img.jpg" - # can also paste direct link from external site - # ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png - alt: "" - caption: "" - relative: false +description: "" +lastmod: {{ .Date }} +showTableOfContents: true +tags: [ ] +type: "post" +title: "{{ replace .Name "-" " " | title }}" +image: "" --- diff --git a/archetypes/til.md b/archetypes/til.md new file mode 100644 index 0000000..8dde4c3 --- /dev/null +++ b/archetypes/til.md @@ -0,0 +1,16 @@ +--- +date: {{ .Date }} +description: "" +lastmod: {{ .Date }} +showTableOfContents: true +type: "tils" +title: "TIL: {{ replace .Name "-" " " | title }}" +image: "" +image_credit: "" +image_alt: "" +tags: [] +--- + +# Context + +# Reflection diff --git a/config.toml b/config.toml index 2dbeea3..6ac44b4 100644 --- a/config.toml +++ b/config.toml @@ -21,11 +21,11 @@ customHeadHTML = ''' <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> <link rel="manifest" href="/site.webmanifest"> - <script>console.log("Custom script")</script> + <!-- <script>console.log("Custom script")</script> --> <!-- <script src="/js/custom.js"></script> --> ''' # Import file from `static/` # customFooterHTML = '<p>foot123</p>' -togglePreviousAndNextButtons = "false" +togglePreviousAndNextButtons = "true" avatarUrl = "/images/fosscat_icon.png" avatarSize = "size-s" numberPostsOnHomePage = 5 @@ -48,21 +48,26 @@ name = "Home" url = "/" weight = 1 [[menu.main]] +identifier = "tils" +name = "TIL's" +url = "/tils/" +weight = 2 +[[menu.main]] name = "Projects" url = "/projects/" -weight = 2 +weight = 3 [[menu.main]] name = "Posts" url = "/posts/" -weight = 3 +weight = 4 [[menu.main]] name = "Tags" url= "/tags/" -weight= 4 +weight= 5 [[menu.main]] identifier = "Gitea" url = "https://git.fosscat.com/n8r/fosscat-site" -weight = 5 +weight = 6 # Add Icon pre = "<span data-feather='code'></span>" [[menu.main]] diff --git a/content/posts/when-easy-going-isnt-easy.md b/content/posts/when-easy-going-isnt-easy.md index 5e972c6..a32744f 100644 --- a/content/posts/when-easy-going-isnt-easy.md +++ b/content/posts/when-easy-going-isnt-easy.md @@ -1,10 +1,12 @@ --- title: "When Easy Going Isnt Easy" date: 2023-09-08T10:02:55-06:00 -draft: false +last-mod: 2023-09-08T10:02:55-06:00 +type: 'post' tags: ['personality', 'mental health', 'advice'] -summary: 'My people-pleasing brain demands smooth sailing waters, often at the cost of the emotionally sensitive.' -tocOpen: true +description: 'My people-pleasing brain demands smooth sailing waters, often at the cost of the emotionally sensitive.' +showTableOfContents: true +weight: 2 --- # Easy Doesn't Equal Right diff --git a/content/tils/_index.md b/content/tils/_index.md new file mode 100644 index 0000000..6dd49ce --- /dev/null +++ b/content/tils/_index.md @@ -0,0 +1,10 @@ +--- +title: "Today I Learned" +type: "til" +--- + +Anyday I learn something cool, I will write up a brief TIL (Today I Learned) post. + +If they help you, great! But I think having a collection of my learnings will be pretty neat just for myself! + +# My TILs diff --git a/content/tils/hammock-driven-development.md b/content/tils/hammock-driven-development.md new file mode 100644 index 0000000..9274dc2 --- /dev/null +++ b/content/tils/hammock-driven-development.md @@ -0,0 +1,29 @@ +--- +date: 2025-03-03T09:19:07-07:00 +description: "I learned the importance of taking time away from the computer in software development" +lastmod: 2025-03-03T09:19:07-07:00 +showTableOfContents: true +type: "tils" +title: "TIL: Hammock Driven Development" +image: "images/hammock.jpg" +alt: "hammock with a cat" +tags: ["clojure", "practices", "rich hickey"] +--- + +# Context + +I started learning Clojure recently with the [Clojure for the Brave](https://www.braveclojure.com/) book, and found online a mention of [Rich Hickey's Greatest Hits](https://changelog.com/posts/rich-hickeys-greatest-hits). +Curious, I listened to his [Hammock Driven Development](https://www.youtube.com/watch?v=f84n5oFoZBc) talk and had my mind changed about planning in software. + +In essence, hammock driven development emphasizes thinking through the problem, uninterrupted and consistently, thus creating agenda notes for our background mind to mull over the problem. + +Done correctly, you experience what Rich Hickey describes as a "delicious cake"[^1] of a solution. + +[^1]: Quote from [his talk](https://www.youtube.com/watch?v=f84n5oFoZBc) + +# Reflection + +I think in the 90's / early 2000's the sun started to set on the big boom of software planning, epitomized in the [waterfall methodology](https://en.wikipedia.org/wiki/Waterfall_model). +But in my opinion, we may have thrown the baby out with the bath water here. I may be too Primegen-pilled, but I've shared his opinion that the best way to learn is to charge forward, +spewing out code, breaking things, only dipping my toes into docs long enough to cobble together what I need. Then, once I understand the problem space, I can really start to design my +software for the space. diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html deleted file mode 100644 index 04849f4..0000000 --- a/layouts/_default/taxonomy.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ define "main" }} - <div class="container"> - <h1>All {{ .Type }}</h1> - <ul> - {{ range .Data.Pages }} - <li> - <a href="{{ .Permalink }}">{{ .Title }}</a> - </li> - {{ end }} - </ul> - </div> -{{ end }} \ No newline at end of file diff --git a/layouts/section/til.html b/layouts/section/til.html new file mode 100644 index 0000000..880845c --- /dev/null +++ b/layouts/section/til.html @@ -0,0 +1,26 @@ +{{ define "main" }} +<div class="container"> + <h1>Today I Learned</h1> + + <p>Debug Info:</p> + <ul> + <li>Total Pages: {{ len .Pages }}</li> + <li>Is Section: {{ .IsSection }}</li> + <li>Section Name: {{ .Section }}</li> + </ul> + + {{ range .Pages }} + <article> + <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> + <p>Date: {{ .Date.Format "January 2, 2006" }}</p> + {{ with .Description }} + <p>{{ . }}</p> + {{ end }} + </article> + {{ end }} + + {{ if eq (len .Pages) 0 }} + <p>No TIL posts found.</p> + {{ end }} +</div> +{{ end }} \ No newline at end of file diff --git a/layouts/tils/list.html b/layouts/tils/list.html new file mode 100644 index 0000000..2925312 --- /dev/null +++ b/layouts/tils/list.html @@ -0,0 +1,31 @@ +{{ define "main" }} +<div class="container"> + <h1 class="page-title">{{ .Title }}</h1> + + {{ .Content }} + + <div class="posts-list"> + {{ range .Pages }} + <article class="post-entry"> + <header class="entry-header"> + <h2 class="entry-title"> + <a href="{{ .Permalink }}" rel="bookmark"> + {{ .Date.Format "Jan 2, 2006" }} - {{ .Title }} + </a> + </h2> + </header> + + {{ with .Description }} + <div class="entry-summary"> + {{ . }} + </div> + {{ end }} + </article> + {{ end }} + + {{ if eq (len .Pages) 0 }} + <p>No TIL posts yet.</p> + {{ end }} + </div> +</div> +{{ end }} \ No newline at end of file diff --git a/layouts/tils/single.html b/layouts/tils/single.html new file mode 100644 index 0000000..78cd315 --- /dev/null +++ b/layouts/tils/single.html @@ -0,0 +1,6 @@ +{{ define "main" }} + +{{- partial "post.html" . -}} +{{- partial "toc.html" . -}} + +{{ end }} \ No newline at end of file diff --git a/static/images/hammock.jpg b/static/images/hammock.jpg new file mode 100644 index 0000000..41096a5 Binary files /dev/null and b/static/images/hammock.jpg differ