Skip to content

Commit

Permalink
Adds audio to posts and updates font (#37)
Browse files Browse the repository at this point in the history
* chore: update

* chore: update font
  • Loading branch information
shivan-s authored Oct 29, 2024
1 parent 2a3561f commit a2213d5
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 34 deletions.
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: [""]
Expand Down
36 changes: 3 additions & 33 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,7 @@ body {
letter-spacing: 0ch;
color: var(--text-color);
background-color: var(--background-color);
font-family:
Monaspace Xenon,
Cambria,
Cochin,
Georgia,
Times,
"Times New Roman",
serif;
font-family: Domine, Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

hr {
Expand Down Expand Up @@ -477,29 +470,6 @@ figure:has(img) {
}

@font-face {
font-family: "Monaspace Xenon";
font-weight: 400;
font-style: normal;
src: url("/fonts/MonaspaceXenon-Light.woff") format("woff");
}

@font-face {
font-family: "Monaspace Xenon";
font-style: normal;
font-weight: 700;
src: url("/fonts/MonaspaceXenon-Bold.woff") format("woff");
}

@font-face {
font-family: "Monaspace Xenon";
font-weight: 400;
font-style: italic;
src: url("/fonts/MonaspaceXenon-Italic.woff") format("woff");
}

@font-face {
font-family: "Monaspace Xenon";
font-weight: 700;
font-style: italic;
src: url("/fonts/MonaspaceXenon-BoldItalic.woff") format("woff");
font-family: "Domine";
src: url("/fonts/Domine-VariableFont_wght.woff") format("woff");
}
10 changes: 10 additions & 0 deletions layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Binary file added static/fonts/Domine-VariableFont_wght.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-Bold.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-BoldItalic.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-ExtraBold.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-ExtraLight.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-Italic.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-Light.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-Medium.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-Regular.woff
Binary file not shown.
Binary file removed static/fonts/MonaspaceXenon-SemiBold.woff
Binary file not shown.

0 comments on commit a2213d5

Please sign in to comment.