Skip to content

Commit

Permalink
Add archetype for TIL posts
Browse files Browse the repository at this point in the history
  • Loading branch information
yanirs committed Jan 7, 2024
1 parent f1832c3 commit 8ed7776
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions archetypes/til.md
Original file line number Diff line number Diff line change
@@ -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
---

0 comments on commit 8ed7776

Please sign in to comment.