From 8ed7776630003f39a1a6b841b8ee668f1722f12a Mon Sep 17 00:00:00 2001 From: Yanir Seroussi Date: Sun, 7 Jan 2024 19:28:06 +1000 Subject: [PATCH] Add archetype for TIL posts --- README.md | 4 ++++ archetypes/til.md | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 archetypes/til.md diff --git a/README.md b/README.md index 896b4a2b1..92f12706c 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,7 @@ Home of the source code for [yanirseroussi.com](https://yanirseroussi.com). Develop locally with [Hugo](https://gohugo.io/): $ hugo server + +Create a new TIL: + + $ hugo new content/til/2024-01-07-something-amazing-i-learned-today.md diff --git a/archetypes/til.md b/archetypes/til.md new file mode 100644 index 000000000..00c48ab12 --- /dev/null +++ b/archetypes/til.md @@ -0,0 +1,11 @@ +--- +title: {{ substr .Name 11 | humanize }} +author: Yanir Seroussi +type: til +date: {{ now.UTC.Format "2006-01-02T15:04:05+00:00" }} +url: /til/{{ replace (substr .Name 0 10) "-" "/" }}/{{ substr .Name 11 }}/ +summary: TODO +showBreadcrumbs: true +tags: + - TODO +---