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 -}} +
+ {{ $lang.copyright.author }}: + {{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }} +
++ {{ $lang.copyright.lastMod }}: + {{ .Lastmod.Format "2006-01-02" }} +
++ {{ $lang.copyright.link }}: + {{ .Permalink }} +
+ {{ if $.Site.Params.linkToMarkDown -}} + {{ with $.OutputFormats.Get "markdown" -}} ++ {{ $lang.copyright.markdown }}: + {{ $lang.posts.seeMarkDown }} +
+ {{- end }} + {{- end }} ++ {{ $lang.copyright.lincese }}: + {{ if .Params.copyright -}} + {{ .Params.copyright | safeHTML }} + {{ else -}} + {{ .Site.Copyright | safeHTML }} + {{- end }} +
+