From 98a21b966410c127e74b16e7a2817882ee16560f Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Sun, 26 Dec 2021 00:30:09 -0500 Subject: convert theme from submodule to regular files --- themes/hugo-coder | 1 - .../layouts/partials/posts/commento.html | 4 +++ .../hugo-coder/layouts/partials/posts/disqus.html | 3 ++ themes/hugo-coder/layouts/partials/posts/math.html | 38 ++++++++++++++++++++++ .../hugo-coder/layouts/partials/posts/series.html | 29 +++++++++++++++++ .../layouts/partials/posts/utterances.html | 12 +++++++ 6 files changed, 86 insertions(+), 1 deletion(-) delete mode 160000 themes/hugo-coder create mode 100644 themes/hugo-coder/layouts/partials/posts/commento.html create mode 100644 themes/hugo-coder/layouts/partials/posts/disqus.html create mode 100644 themes/hugo-coder/layouts/partials/posts/math.html create mode 100644 themes/hugo-coder/layouts/partials/posts/series.html create mode 100644 themes/hugo-coder/layouts/partials/posts/utterances.html (limited to 'themes/hugo-coder/layouts/partials/posts') diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 index 55b2a15..0000000 --- a/themes/hugo-coder +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 55b2a150f990bc56364dba347bc9acc6aab07be3 diff --git a/themes/hugo-coder/layouts/partials/posts/commento.html b/themes/hugo-coder/layouts/partials/posts/commento.html new file mode 100644 index 0000000..93a245e --- /dev/null +++ b/themes/hugo-coder/layouts/partials/posts/commento.html @@ -0,0 +1,4 @@ +{{- if and (isset .Site.Params "commentourl") (not (eq .Site.Params.commentoURL "" )) (eq (.Params.disableComments | default false) false) -}} +
+ +{{- end -}} diff --git a/themes/hugo-coder/layouts/partials/posts/disqus.html b/themes/hugo-coder/layouts/partials/posts/disqus.html new file mode 100644 index 0000000..b0ffb1f --- /dev/null +++ b/themes/hugo-coder/layouts/partials/posts/disqus.html @@ -0,0 +1,3 @@ +{{- if and (not (eq (.Site.DisqusShortname | default "") "")) (eq (.Params.disableComments | default false) false) -}} + {{ template "_internal/disqus.html" . }} +{{- end -}} diff --git a/themes/hugo-coder/layouts/partials/posts/math.html b/themes/hugo-coder/layouts/partials/posts/math.html new file mode 100644 index 0000000..bc39ce5 --- /dev/null +++ b/themes/hugo-coder/layouts/partials/posts/math.html @@ -0,0 +1,38 @@ +{{- if or (.Params.math) (.Site.Params.math) -}} + + {{/* The file is already minified */}} + + +{{- end -}} +{{- if or (.Params.katex) (.Site.Params.katex) -}} + + {{/* The loading of KaTeX is deferred to speed up page rendering */}} + + +{{- end -}} diff --git a/themes/hugo-coder/layouts/partials/posts/series.html b/themes/hugo-coder/layouts/partials/posts/series.html new file mode 100644 index 0000000..d08a83d --- /dev/null +++ b/themes/hugo-coder/layouts/partials/posts/series.html @@ -0,0 +1,29 @@ +{{ $currentPageUrl := .RelPermalink }} +{{ if .Params.series }} +
+ {{ range .Params.series }} + {{ $name := . | urlize }} + {{ $series := index $.Site.Taxonomies.series $name }} + {{ if gt (len $series.Pages) 1 }} +

+ {{ i18n "see_also" | default "See also in" }} {{ . }} + + + +

+ + {{ end }} + {{ end }} +
+{{ end }} diff --git a/themes/hugo-coder/layouts/partials/posts/utterances.html b/themes/hugo-coder/layouts/partials/posts/utterances.html new file mode 100644 index 0000000..0feea41 --- /dev/null +++ b/themes/hugo-coder/layouts/partials/posts/utterances.html @@ -0,0 +1,12 @@ +{{- if isset .Site.Params "utterances" -}} + {{- if and (isset .Site.Params.utterances "repo") (not (eq .Site.Params.utterances.repo "" )) (eq (.Params.disable_comments | default false) false) -}} + + {{- end -}} +{{- end -}} -- cgit v1.2.3