mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-13 17:43:45 +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 />
|
<hr />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{ if .Params.Audio }}
|
{{ with .Params.Audio }}
|
||||||
<div class="post-audio">
|
<div class="post-audio">
|
||||||
<audio controls>
|
<audio controls>
|
||||||
<source src="{{ .Params.Audio }}">
|
<source src="{{ . }}">
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -36,19 +36,16 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with partial "_funcs/get-page-images" . }}
|
{{- with partial "_funcs/get-page-images" . }}
|
||||||
|
<!-- Images -->
|
||||||
|
{{ . }}
|
||||||
|
<!-- /Images -->
|
||||||
{{- range . | first 6 }}
|
{{- range . | first 6 }}
|
||||||
<meta property="og:image" content="{{ .Permalink }}">
|
<meta property="og:image" content="{{ .Permalink }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with .Params.audio }}
|
{{- with .Params.audio }}
|
||||||
<meta property="og:audio" content="{{ . | absURL }}">
|
<meta property="og:audio" content="{{ page.Permalink }}{{ . }}">
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{- with .Params.videos }}
|
|
||||||
{{- range . | first 6 }}
|
|
||||||
<meta property="og:video" content="{{ . | absURL }}">
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- range .GetTerms "series" }}
|
{{- range .GetTerms "series" }}
|
||||||
|
|
Loading…
Reference in a new issue