diff --git a/layouts/partials/article/article.html b/layouts/partials/article/article.html index f3f7e90..c5ad53c 100644 --- a/layouts/partials/article/article.html +++ b/layouts/partials/article/article.html @@ -1,8 +1,18 @@
{{ partial "article/components/header" . }} + {{ if .Params.audio }} + {{ if or ( eq .Params.audio.p "before" ) ( not .Params.audio.p ) }} + {{ partial "article/components/audio" . }} + {{ end }} + {{ end }} + {{ partial "article/components/content" . }} + {{ if or ( eq .Params.audio.p "after") ( eq .Params.audio.p "fixed" ) }} + {{ partial "article/components/audio" . }} + {{ end }} + {{ partial "article/components/footer" . }} {{ if or .Params.math .Site.Params.article.math }} diff --git a/layouts/partials/article/components/audio.html b/layouts/partials/article/components/audio.html new file mode 100644 index 0000000..d521201 --- /dev/null +++ b/layouts/partials/article/components/audio.html @@ -0,0 +1,24 @@ +
+ + +
\ No newline at end of file diff --git a/layouts/partials/article/components/header.html b/layouts/partials/article/components/header.html index 7582ec2..f6e0a73 100644 --- a/layouts/partials/article/components/header.html +++ b/layouts/partials/article/components/header.html @@ -32,4 +32,11 @@ {{ end }} {{ partialCached "article/components/details" . .RelPermalink }} + + {{ if .Params.audio }} + + + + + {{ end }} \ No newline at end of file diff --git a/layouts/shortcodes/tencent.html b/layouts/shortcodes/tencent.html new file mode 100644 index 0000000..fb0afa5 --- /dev/null +++ b/layouts/shortcodes/tencent.html @@ -0,0 +1,13 @@ + +{{ $vid := (.Get 0) }} + +
+ +
\ No newline at end of file