formatter: apply changes

This commit is contained in:
Jan Kremer 2024-10-23 11:14:39 +02:00
parent c5f3185f6a
commit d9aa931156
Signed by: jan
GPG key ID: A7DA689CB3B078EC
4 changed files with 13 additions and 6 deletions

View file

@ -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.

View file

@ -13,7 +13,8 @@
}}
{{ end }}
</title>
{{ 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 `<link rel="%q" type="%q" href="%q" title="%q" />` .Rel .MediaType.Type

View file

@ -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
}}

View file

@ -23,5 +23,7 @@
settings.global.excludes = [
"public/**"
"static/**"
".envrc"
"*.webp"
];
}