From 98d0cf0293cd86c83bf71885a6363c5d2e1732d9 Mon Sep 17 00:00:00 2001 From: Shivan Sivakumaran Date: Sun, 27 Oct 2024 22:43:06 +1300 Subject: [PATCH] chore: update --- archetypes/default.md | 2 +- layouts/posts/single.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/archetypes/default.md b/archetypes/default.md index 81ed087..c483528 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,6 @@ --- title: '{{ replace .File.ContentBaseName "-" " " | title }}' -date: { { .Date | time.Format "2006-01-02" } } +date: '{{ .Date | time.Format "2006-01-02" }}' author: Author Name summary: Summary tags: [""] diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 485540a..5c9e43c 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -26,6 +26,16 @@

{{ .Title }}

{{ end }} {{ end }} + {{ if not (.Param "audio.hidden") }} + {{ $src := (.Param "audio.src") | default "" }} + {{ $caption := (.Param "audio.caption") | default false }} +
+ {{ if $caption }} +
{{ $caption }}
+ {{ end }} + +
+ {{ end }}