Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update
Browse files Browse the repository at this point in the history
shivan-s committed Oct 27, 2024
1 parent 2a3561f commit 98d0cf0
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion archetypes/default.md
Original file line number Diff line number Diff line change
@@ -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: [""]
10 changes: 10 additions & 0 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
@@ -26,6 +26,16 @@ <h1>{{ .Title }}</h1>
{{ end }}
</figure>
{{ end }}
{{ if not (.Param "audio.hidden") }}
{{ $src := (.Param "audio.src") | default "" }}
{{ $caption := (.Param "audio.caption") | default false }}
<figure>
{{ if $caption }}
<figcaption>{{ $caption }}</figcaption>
{{ end }}
<audio controls src="{{ $src }}"></audio>
</figure>
{{ end }}
</header>
<aside>
<details class="table-of-contents">

0 comments on commit 98d0cf0

Please sign in to comment.