diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 438984a..d46e84d 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -49,10 +49,16 @@ params: comments: enabled: true provider: disqus + utterances: repo: issueTerm: pathname label: + + remark42: + host: # remark42服务端地址 + site: # remark site id参数 + locale: zh # en zh 语言 widgets: enabled: 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/partials/comments/provider/remark42.html b/layouts/partials/comments/provider/remark42.html new file mode 100644 index 0000000..6141010 --- /dev/null +++ b/layouts/partials/comments/provider/remark42.html @@ -0,0 +1,54 @@ +
+ + \ 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