mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 14:55:41 +01:00
Fix audio og links
This commit is contained in:
parent
1810cc8be4
commit
abb6fbc964
2 changed files with 6 additions and 9 deletions
|
@ -76,10 +76,10 @@
|
|||
<hr />
|
||||
{{- end }}
|
||||
|
||||
{{ if .Params.Audio }}
|
||||
{{ with .Params.Audio }}
|
||||
<div class="post-audio">
|
||||
<audio controls>
|
||||
<source src="{{ .Params.Audio }}">
|
||||
<source src="{{ . }}">
|
||||
</audio>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -36,19 +36,16 @@
|
|||
{{- end }}
|
||||
|
||||
{{- with partial "_funcs/get-page-images" . }}
|
||||
<!-- Images -->
|
||||
{{ . }}
|
||||
<!-- /Images -->
|
||||
{{- range . | first 6 }}
|
||||
<meta property="og:image" content="{{ .Permalink }}">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- with .Params.audio }}
|
||||
<meta property="og:audio" content="{{ . | absURL }}">
|
||||
{{- end }}
|
||||
|
||||
{{- with .Params.videos }}
|
||||
{{- range . | first 6 }}
|
||||
<meta property="og:video" content="{{ . | absURL }}">
|
||||
{{- end }}
|
||||
<meta property="og:audio" content="{{ page.Permalink }}{{ . }}">
|
||||
{{- end }}
|
||||
|
||||
{{- range .GetTerms "series" }}
|
||||
|
|
Loading…
Reference in a new issue