Merge pull request #263 from talbotp/add-audio-for-posts

Added support for blog post audio.
This commit is contained in:
Djordje Atlialp 2021-04-29 23:31:03 +02:00 committed by GitHub
commit 7bc931ead2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -91,6 +91,17 @@
} }
} }
&-audio {
display: flex;
justify-content: center;
align-items: center;
padding-top: 20px;
audio {
width: 90%;
}
}
.flag { .flag {
border-radius: 50%; border-radius: 50%;
margin: 0 5px; margin: 0 5px;

View file

@ -45,6 +45,14 @@
<hr /> <hr />
{{- end }} {{- end }}
{{ if .Params.Audio }}
<div class="post-audio">
<audio controls>
<source src="{{ .Params.Audio }}">
</audio>
</div>
{{ end }}
<div class="post-content"> <div class="post-content">
{{ .Content }} {{ .Content }}
</div> </div>