diff --git a/content/micro/timestamps.org b/content/micro/timestamps.md similarity index 58% rename from content/micro/timestamps.org rename to content/micro/timestamps.md index ad2aff6..4723039 100644 --- a/content/micro/timestamps.org +++ b/content/micro/timestamps.md @@ -1,6 +1,9 @@ -#+TITLE: Use Timestamps -#+DATE: 2023-11-15T10:12:30+01:00 -#+TAGS[]: micro +--- +title: Use Timestamps +date: 2023-11-15T10:12:30+01:00 +tags: + - micro +--- Every blog post should include a timestamp. In fact, this extends to almost anything online and even offline. @@ -8,6 +11,6 @@ In fact, this extends to almost anything online and even offline. Also, don't make me look for the date. Put the date as obvious as possible, preferably at the beginning of the post. -I was reading [[https://jvns.ca/blog/2023/02/28/some-notes-on-using-nix/][Julia Evans post about nix]] and it was not immediately clear to me if this was a recent post. +I was reading [Julia Evans post about nix](https://jvns.ca/blog/2023/02/28/some-notes-on-using-nix/) and it was not immediately clear to me if this was a recent post. Only when I copied the URL to complain about it I discovered the date there. Safari hides most of the URL by default. diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c63f8ea..1a33de6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -13,7 +13,8 @@ }} {{ end }} -{{ partialCached "head/css.html" . }} {{ partialCached "head/js.html" . }} +{{ partialCached "head/css.html" . }} +{{ partialCached "head/js.html" . }} {{ partial "head/analytics.html" . }} {{ with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type diff --git a/layouts/partials/terms.html b/layouts/partials/terms.html index 1c16978..fecc2a0 100644 --- a/layouts/partials/terms.html +++ b/layouts/partials/terms.html @@ -2,7 +2,8 @@ @context {page} page The current page. @context {string} taxonomy The taxonony. @example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} -*/}} {{- $page := .page }} {{- $taxonomy := .taxonomy }} +*/}} {{- $page := .page }} +{{- $taxonomy := .taxonomy }} {{- with $page.GetTerms $taxonomy }} diff --git a/treefmt.nix b/treefmt.nix index 202f4ed..28ce1c2 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -23,5 +23,7 @@ settings.global.excludes = [ "public/**" "static/**" + ".envrc" + "*.webp" ]; }