diff --git a/archetypes/snippet.md b/archetypes/snippet.md new file mode 100644 index 0000000..eec1d42 --- /dev/null +++ b/archetypes/snippet.md @@ -0,0 +1,8 @@ +--- +title: "{{ replace .File.ContentBaseName "-" " " | title }}" +date: {{ .Date }} +tags: [] +draft: true +icon: null +--- + diff --git a/content/snippets/seconds-since-last-pacman-sync.md b/content/snippets/seconds-since-last-pacman-sync.md index 5fb51da..a8ffbfd 100644 --- a/content/snippets/seconds-since-last-pacman-sync.md +++ b/content/snippets/seconds-since-last-pacman-sync.md @@ -3,6 +3,7 @@ title: "Seconds since last pacman sync" date: 2022-06-11T08:45:13Z tags: ["archlinux", "linux", "pacman"] draft: false +icon: shell --- ## Result diff --git a/layouts/partials/generic-list.html b/layouts/partials/generic-list.html index 9b57e87..0cd2be8 100644 --- a/layouts/partials/generic-list.html +++ b/layouts/partials/generic-list.html @@ -25,8 +25,9 @@ {{ if $pagination }} {{ $paginator := $page.Paginate $entries }} {{ range $paginator.Pages }} + {{ $iconName := default "default" .Params.icon }}