aboutsummaryrefslogtreecommitdiff
path: root/themes/even/layouts/partials/post
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
commitf24f2d15275961f1c0144e68fde75a60aeaaa165 (patch)
tree38be1626f3ade436fbd17eadb2753fa2f0effb37 /themes/even/layouts/partials/post
parentbf04383b34c4a4fdfe239de2805a30a051921002 (diff)
downloadcapotej.com-f24f2d15275961f1c0144e68fde75a60aeaaa165.tar.gz
move to bear theme
Diffstat (limited to '')
-rw-r--r--themes/even/layouts/partials/post/copyright.html32
-rw-r--r--themes/even/layouts/partials/post/outdated-info-warning.html28
-rw-r--r--themes/even/layouts/partials/post/reward.html21
-rw-r--r--themes/even/layouts/partials/post/toc.html9
4 files changed, 0 insertions, 90 deletions
diff --git a/themes/even/layouts/partials/post/copyright.html b/themes/even/layouts/partials/post/copyright.html
deleted file mode 100644
index cd42d68..0000000
--- a/themes/even/layouts/partials/post/copyright.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{{ if or .Params.postMetaInFooter (and .Site.Params.postMetaInFooter (ne .Params.postMetaInFooter false)) -}}
-<div class="post-copyright">
- <p class="copyright-item">
- <span class="item-title">{{ T "author" }}</span>
- <span class="item-content">{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
- </p>
- <p class="copyright-item">
- <span class="item-title">{{ T "lastMod" }}</span>
- <span class="item-content">{{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</span>
- </p>
- {{ if $.Site.Params.linkToMarkDown -}}
- {{ with $.OutputFormats.Get "markdown" -}}
- <p class="copyright-item">
- <span class="item-title">{{ T "markdown" }}</span>
- <span class="item-content"><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ T "seeMarkDown" }}</a></span>
- </p>
- {{- end }}
- {{- end }}
- {{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) -}}
- <p class="copyright-item">
- <span class="item-title">{{ T "license" }}</span>
- <span class="item-content">
- {{- if .Params.contentCopyright -}}
- {{ .Params.contentCopyright | safeHTML }}
- {{- else -}}
- {{ .Site.Params.contentCopyright | safeHTML }}
- {{- end -}}
- </span>
- </p>
- {{- end }}
-</div>
-{{- end }} \ No newline at end of file
diff --git a/themes/even/layouts/partials/post/outdated-info-warning.html b/themes/even/layouts/partials/post/outdated-info-warning.html
deleted file mode 100644
index 3736c13..0000000
--- a/themes/even/layouts/partials/post/outdated-info-warning.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{{- if or .Params.enableOutdatedInfoWarning (and .Site.Params.outdatedInfoWarning.enable (ne .Params.enableOutdatedInfoWarning false)) }}
- {{- $daysAgo := div (sub now.Unix .Lastmod.Unix) 86400 }}
- {{- $hintThreshold := .Site.Params.outdatedInfoWarning.hint | default 30 }}
- {{- $warnThreshold := .Site.Params.outdatedInfoWarning.warn | default 180 }}
-
- {{- $updateTime := .Lastmod }}
- {{- if .GitInfo }}
- {{- if lt .GitInfo.AuthorDate.Unix .Lastmod.Unix }}
- {{- $updateTime := .GitInfo.AuthorDate }}
- {{- end }}
- {{- end -}}
-
- {{- if gt $daysAgo $hintThreshold }}
- <div class="post-outdated">
- {{- if gt $daysAgo $warnThreshold }}
- <div class="warn">
- {{- else }}
- <div class="hint">
- {{- end }}
- <p>{{ T "outdatedInfoWarningBefore" -}}
- <span class="timeago" datetime="{{ dateFormat "2006-01-02T15:04:05" $updateTime }}" title="{{ dateFormat "January 2, 2006" $updateTime }}">
- {{- dateFormat "January 2, 2006" $updateTime -}}
- </span>{{ T "outdatedInfoWarningAfter" -}}
- </p>
- </div>
- </div>
- {{- end -}}
-{{- end -}}
diff --git a/themes/even/layouts/partials/post/reward.html b/themes/even/layouts/partials/post/reward.html
deleted file mode 100644
index 3242854..0000000
--- a/themes/even/layouts/partials/post/reward.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{{ if or .Params.reward (and .Site.Params.reward.enable (ne .Params.reward false)) }}
-<div class="post-reward">
- <input type="checkbox" name="reward" id="reward" hidden />
- <label class="reward-button" for="reward">{{ T "reward" }}</label>
- <div class="qr-code">
- {{ $qrCode := .Site.Params.reward }}
- {{ with $qrCode.wechat }}
- <label class="qr-code-image" for="reward">
- <img class="image" src="{{ . }}">
- <span>{{ T "rewardWechat" }}</span>
- </label>
- {{- end }}
- {{ with $qrCode.alipay }}
- <label class="qr-code-image" for="reward">
- <img class="image" src="{{ . }}">
- <span>{{ T "rewardAlipay" }}</span>
- </label>
- {{- end }}
- </div>
-</div>
-{{- end }} \ No newline at end of file
diff --git a/themes/even/layouts/partials/post/toc.html b/themes/even/layouts/partials/post/toc.html
deleted file mode 100644
index 4fed1c7..0000000
--- a/themes/even/layouts/partials/post/toc.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{{ if or .Params.toc (and .Site.Params.toc (ne .Params.toc false)) }}
-<div class="post-toc" id="post-toc">
- <h2 class="post-toc-title">{{ T "toc" }}</h2>
- {{ $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default false }}
- <div class="post-toc-content{{ if not (or .Params.autoCollapseToc (and $globalAutoCollapseToc (ne .Params.autoCollapseToc false))) }} always-active{{ end }}">
- {{.TableOfContents}}
- </div>
-</div>
-{{- end }} \ No newline at end of file