From 753648ed2dabac20e7c40e261546bd4a4387a214 Mon Sep 17 00:00:00 2001 From: nodejh Date: Sat, 21 Jan 2017 01:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=9A=E8=AF=B4=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - exampleSite/static/.gitkeep | 0 layouts/_default/single.html | 6 +++++- layouts/partials/duoshuo.html | 18 ++++++++++++++++++ static/css/style.css | 2 +- 5 files changed, 24 insertions(+), 3 deletions(-) delete mode 100644 exampleSite/static/.gitkeep create mode 100644 layouts/partials/duoshuo.html diff --git a/.gitignore b/.gitignore index 0f40a19..e43b0f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ .DS_Store -CHANGELOG.md diff --git a/exampleSite/static/.gitkeep b/exampleSite/static/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 51951c8..6dbb01a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,7 +6,7 @@

- {{ if .Site.Params.useDescriptionAsTitle }} + {{ if .Site.Params.useDescriptionAsTitle }} {{ .Description }} {{ else }} {{ .Title }} @@ -40,6 +40,10 @@ {{ partial "disqus.html" . }} {{ end }} + {{ if .Site.Params.enableDuoshuo }} + {{ partial "duoshuo.html" . }} + {{ end }} + {{ partial "footer.html" . }} diff --git a/layouts/partials/duoshuo.html b/layouts/partials/duoshuo.html new file mode 100644 index 0000000..3d77078 --- /dev/null +++ b/layouts/partials/duoshuo.html @@ -0,0 +1,18 @@ + +
+ + + + diff --git a/static/css/style.css b/static/css/style.css index 9fefa70..4e82150 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -721,7 +721,7 @@ h2.month { font: 300 16px/1.6 "Helvetica Neue", helvetica, Arial, sans-serif; } -#disqus_thread { +#disqus_thread, #ds-thread { margin-top: 100px; }