From f24f2d15275961f1c0144e68fde75a60aeaaa165 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 23 Jan 2023 22:20:47 -0500 Subject: move to bear theme --- themes/even/layouts/partials/comments.html | 109 ------------------- themes/even/layouts/partials/footer.html | 23 ----- themes/even/layouts/partials/head.html | 79 -------------- themes/even/layouts/partials/header.html | 19 ---- themes/even/layouts/partials/post/copyright.html | 32 ------ .../partials/post/outdated-info-warning.html | 28 ----- themes/even/layouts/partials/post/reward.html | 21 ---- themes/even/layouts/partials/post/toc.html | 9 -- themes/even/layouts/partials/scripts.html | 115 --------------------- themes/even/layouts/partials/slideout.html | 25 ----- 10 files changed, 460 deletions(-) delete mode 100644 themes/even/layouts/partials/comments.html delete mode 100644 themes/even/layouts/partials/footer.html delete mode 100644 themes/even/layouts/partials/head.html delete mode 100644 themes/even/layouts/partials/header.html delete mode 100644 themes/even/layouts/partials/post/copyright.html delete mode 100644 themes/even/layouts/partials/post/outdated-info-warning.html delete mode 100644 themes/even/layouts/partials/post/reward.html delete mode 100644 themes/even/layouts/partials/post/toc.html delete mode 100644 themes/even/layouts/partials/scripts.html delete mode 100644 themes/even/layouts/partials/slideout.html (limited to 'themes/even/layouts/partials') diff --git a/themes/even/layouts/partials/comments.html b/themes/even/layouts/partials/comments.html deleted file mode 100644 index 440240a..0000000 --- a/themes/even/layouts/partials/comments.html +++ /dev/null @@ -1,109 +0,0 @@ -{{ if and .IsPage (ne .Params.comment false) }} - - {{- if .Site.DisqusShortname -}} -
- - - {{- end -}} - - - {{- if and .Site.Params.changyanAppid .Site.Params.changyanAppkey -}} -
- - {{- end -}} - - - {{- if .Site.Params.livereUID -}} -
- - -
- {{- end -}} - - - {{- if .Site.Params.gitment.owner -}} -
- {{ if .Site.Params.publicCDN.enable -}} - {{ .Site.Params.publicCDN.gitmentCSS | safeHTML }} - {{ .Site.Params.publicCDN.gitmentJS | safeHTML }} - {{- else -}} - - - {{- end }} - - - {{- end }} - - - {{- if .Site.Params.gitalk.owner -}} -
- {{ if .Site.Params.publicCDN.enable -}} - {{ .Site.Params.publicCDN.gitalkCSS | safeHTML }} - {{ .Site.Params.publicCDN.gitalkJS | safeHTML }} - {{- else -}} - - - {{- end }} - - - {{- end }} - -{{- end }} diff --git a/themes/even/layouts/partials/footer.html b/themes/even/layouts/partials/footer.html deleted file mode 100644 index 461a5c8..0000000 --- a/themes/even/layouts/partials/footer.html +++ /dev/null @@ -1,23 +0,0 @@ - diff --git a/themes/even/layouts/partials/head.html b/themes/even/layouts/partials/head.html deleted file mode 100644 index afe7004..0000000 --- a/themes/even/layouts/partials/head.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - -{{- if .Description -}} - -{{ else if .IsPage }} - -{{ else if .Site.Params.description }} - -{{- end -}} - -{{- if .Keywords -}} - {{ $length := len .Keywords | add -1 -}} - -{{ else if .Site.Params.keywords }} - {{ $length := len .Site.Params.keywords | add -1 -}} - -{{- end }} - - -{{ with .Site.Params.baidu_verification }}{{ end }} -{{ with .Site.Params.google_verification }}{{ end }} - - - - - - - - - - - - - -{{- if .Site.Params.debug }} - - -{{- end }} - - - -{{ if .Site.Params.publicCDN.enable -}} - {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxCss | safeHTML }}{{ end }} -{{- else -}} - {{ if .Site.Params.fancybox }}{{ end }} -{{- end }} - - -{{ range .Site.Params.customCSS }} - -{{ end }} - -{{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}} -{{- template "_internal/opengraph.html" . -}} -{{- template "_internal/google_news.html" . -}} -{{- template "_internal/schema.html" . -}} -{{- template "_internal/twitter_cards.html" . -}} - - -{{ `` | safeHTML }} - -{{ `` | safeHTML }} diff --git a/themes/even/layouts/partials/header.html b/themes/even/layouts/partials/header.html deleted file mode 100644 index 3592e88..0000000 --- a/themes/even/layouts/partials/header.html +++ /dev/null @@ -1,19 +0,0 @@ -
- -
- - \ No newline at end of file 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)) -}} -
- - - {{ if $.Site.Params.linkToMarkDown -}} - {{ with $.OutputFormats.Get "markdown" -}} - - {{- end }} - {{- end }} - {{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) -}} - - {{- end }} -
-{{- 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 }} -
- {{- if gt $daysAgo $warnThreshold }} -
- {{- else }} -
- {{- end }} -

{{ T "outdatedInfoWarningBefore" -}} - - {{- dateFormat "January 2, 2006" $updateTime -}} - {{ T "outdatedInfoWarningAfter" -}} -

-
-
- {{- 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)) }} -
- - -
- {{ $qrCode := .Site.Params.reward }} - {{ with $qrCode.wechat }} - - {{- end }} - {{ with $qrCode.alipay }} - - {{- end }} -
-
-{{- 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)) }} -
-

{{ T "toc" }}

- {{ $globalAutoCollapseToc := .Site.Params.autoCollapseToc | default false }} -
- {{.TableOfContents}} -
-
-{{- end }} \ No newline at end of file diff --git a/themes/even/layouts/partials/scripts.html b/themes/even/layouts/partials/scripts.html deleted file mode 100644 index 803ac6a..0000000 --- a/themes/even/layouts/partials/scripts.html +++ /dev/null @@ -1,115 +0,0 @@ - - -{{- if .Site.Params.publicCDN.enable }} - {{ .Site.Params.publicCDN.jquery | safeHTML }} - {{ .Site.Params.publicCDN.slideout | safeHTML }} - {{ if .Site.Params.fancybox }}{{ .Site.Params.publicCDN.fancyboxJs | safeHTML }}{{ end }} -{{- else -}} - - - {{ if .Site.Params.fancybox }}{{ end }} -{{- end -}} - - -{{- if and (or .Params.enableOutdatedInfoWarning (and .Site.Params.outdatedInfoWarning.enable (ne .Params.enableOutdatedInfoWarning false))) (or .IsPage .IsHome) }} - {{- if .Site.Params.publicCDN.enable }} - {{ .Site.Params.publicCDN.timeagoJS | safeHTML }} - {{ .Site.Params.publicCDN.timeagoLocalesJS | safeHTML }} - {{- else }} - - - {{- end }} - -{{- end }} - - -{{- if and (or .Params.flowchartDiagrams.enable (and .Site.Params.flowchartDiagrams.enable (ne .Params.flowchartDiagrams.enable false))) (or .IsPage .IsHome) -}} - - - -{{- end -}} - - -{{- if and (or .Params.sequenceDiagrams.enable (and .Site.Params.sequenceDiagrams.enable (ne .Params.sequenceDiagrams.enable false))) (or .IsPage .IsHome) -}} - - - - - - -{{- end }} - - -{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }} - - -{{- end }} - - -{{- if .Site.GoogleAnalytics -}} - {{ template "_internal/google_analytics_async.html" . }} -{{- end -}} - -{{- with .Site.Params.baidu_analytics -}} - -{{- end }} - - -{{- if .Site.Params.baidu_push -}} - -{{- end }} - - -{{ range .Site.Params.customJS }} - -{{ end }} diff --git a/themes/even/layouts/partials/slideout.html b/themes/even/layouts/partials/slideout.html deleted file mode 100644 index 42ed13e..0000000 --- a/themes/even/layouts/partials/slideout.html +++ /dev/null @@ -1,25 +0,0 @@ - - \ No newline at end of file -- cgit v1.2.3