From 3c6cb7f29631dfcdd954e7cbd5d2370efe7eb827 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Sun, 27 Aug 2017 22:38:42 +0800 Subject: =?UTF-8?q?=F0=9F=8E=89=20first=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/post/copyright.html | 33 +++++++++++++++++++++++++++++++++ layouts/partials/post/reward.html | 19 +++++++++++++++++++ layouts/partials/post/toc.html | 8 ++++++++ 3 files changed, 60 insertions(+) create mode 100644 layouts/partials/post/copyright.html create mode 100644 layouts/partials/post/reward.html create mode 100644 layouts/partials/post/toc.html (limited to 'layouts/partials/post') diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html new file mode 100644 index 0000000..6908b10 --- /dev/null +++ b/layouts/partials/post/copyright.html @@ -0,0 +1,33 @@ +{{ if and .Site.Copyright (ne .Params.copyright false) }} +{{ $lang := .Site.Data.even.default -}} +
+ + + + {{ if $.Site.Params.linkToMarkDown -}} + {{ with $.OutputFormats.Get "markdown" -}} + + {{- end }} + {{- end }} + +
+{{- end }} \ No newline at end of file diff --git a/layouts/partials/post/reward.html b/layouts/partials/post/reward.html new file mode 100644 index 0000000..5a26cd7 --- /dev/null +++ b/layouts/partials/post/reward.html @@ -0,0 +1,19 @@ +{{ if and .Site.Params.reward.enable (ne .Params.reward false) }} +
+ + +
+ {{ $qrCode := .Site.Params.reward }} + {{ with $qrCode.wechat }} + + {{- end }} + {{ with $qrCode.alipay }} + + {{- end }} +
+
+{{- end }} \ No newline at end of file diff --git a/layouts/partials/post/toc.html b/layouts/partials/post/toc.html new file mode 100644 index 0000000..7921065 --- /dev/null +++ b/layouts/partials/post/toc.html @@ -0,0 +1,8 @@ +{{ if and .Site.Params.toc (ne .Params.toc false) }} +
+

{{ .Site.Data.even.default.posts.toc }}

+
+ {{.TableOfContents}} +
+
+{{- end }} \ No newline at end of file -- cgit v1.2.3