From 2c17fbcdf8ea36d9d10dba243db94de85575e8ed Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 2 Oct 2023 09:02:20 +0200 Subject: chore: Copy theme layouts --- .../single/components/comments/comments.html | 11 +++++++++++ .../partials/single/components/comments/disqus.html | 4 ++++ .../partials/single/components/comments/giscus.html | 21 +++++++++++++++++++++ .../single/components/metatag/categories.html | 8 ++++++++ .../partials/single/components/metatag/tags.html | 9 +++++++++ .../partials/single/components/metatag/time.html | 4 ++++ layouts/partials/single/components/title/large.html | 1 + layouts/partials/single/components/title/small.html | 1 + layouts/partials/single/default.html | 17 +++++++++++++++++ layouts/partials/single/homepage.html | 8 ++++++++ 10 files changed, 84 insertions(+) create mode 100644 layouts/partials/single/components/comments/comments.html create mode 100644 layouts/partials/single/components/comments/disqus.html create mode 100644 layouts/partials/single/components/comments/giscus.html create mode 100644 layouts/partials/single/components/metatag/categories.html create mode 100644 layouts/partials/single/components/metatag/tags.html create mode 100644 layouts/partials/single/components/metatag/time.html create mode 100644 layouts/partials/single/components/title/large.html create mode 100644 layouts/partials/single/components/title/small.html create mode 100644 layouts/partials/single/default.html create mode 100644 layouts/partials/single/homepage.html (limited to 'layouts/partials/single') diff --git a/layouts/partials/single/components/comments/comments.html b/layouts/partials/single/components/comments/comments.html new file mode 100644 index 0000000..2eae412 --- /dev/null +++ b/layouts/partials/single/components/comments/comments.html @@ -0,0 +1,11 @@ +{{ if .IsPage }} + + {{ if .Site.Params.giscus.enable }} + {{ partial "single/components/comments/giscus" . }} + {{ end }} + + + {{ if .Site.Params.disqusShortname }} + {{ partial "single/components/comments/disqus" . }} + {{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/single/components/comments/disqus.html b/layouts/partials/single/components/comments/disqus.html new file mode 100644 index 0000000..b794098 --- /dev/null +++ b/layouts/partials/single/components/comments/disqus.html @@ -0,0 +1,4 @@ +
+ {{/* https://gohugo.io/templates/internal/#disqus */}} + {{- template "_internal/disqus.html" . -}} +
\ No newline at end of file diff --git a/layouts/partials/single/components/comments/giscus.html b/layouts/partials/single/components/comments/giscus.html new file mode 100644 index 0000000..4daa23a --- /dev/null +++ b/layouts/partials/single/components/comments/giscus.html @@ -0,0 +1,21 @@ +
+ +
\ No newline at end of file diff --git a/layouts/partials/single/components/metatag/categories.html b/layouts/partials/single/components/metatag/categories.html new file mode 100644 index 0000000..1d0f808 --- /dev/null +++ b/layouts/partials/single/components/metatag/categories.html @@ -0,0 +1,8 @@ +{{ with (.GetTerms "categories") }} + — + {{ range . }} + + {{ .LinkTitle }} + + {{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/partials/single/components/metatag/tags.html b/layouts/partials/single/components/metatag/tags.html new file mode 100644 index 0000000..800ebc2 --- /dev/null +++ b/layouts/partials/single/components/metatag/tags.html @@ -0,0 +1,9 @@ +{{ with (.GetTerms "tags") }} +
+ {{ range . }} + + {{ .LinkTitle }} + + {{ end }} +
+{{ end }} diff --git a/layouts/partials/single/components/metatag/time.html b/layouts/partials/single/components/metatag/time.html new file mode 100644 index 0000000..4575fc0 --- /dev/null +++ b/layouts/partials/single/components/metatag/time.html @@ -0,0 +1,4 @@ +{{- $pubdate := .PublishDate.Format "2 January 2006" }} + \ No newline at end of file diff --git a/layouts/partials/single/components/title/large.html b/layouts/partials/single/components/title/large.html new file mode 100644 index 0000000..20b9b3f --- /dev/null +++ b/layouts/partials/single/components/title/large.html @@ -0,0 +1 @@ +

{{ .Title }}

diff --git a/layouts/partials/single/components/title/small.html b/layouts/partials/single/components/title/small.html new file mode 100644 index 0000000..bda0a1e --- /dev/null +++ b/layouts/partials/single/components/title/small.html @@ -0,0 +1 @@ +

{{ .Title }}

\ No newline at end of file diff --git a/layouts/partials/single/default.html b/layouts/partials/single/default.html new file mode 100644 index 0000000..2d2ad63 --- /dev/null +++ b/layouts/partials/single/default.html @@ -0,0 +1,17 @@ +
+
+ {{ partial "single/components/title/large" . }} +
+ {{ partial "single/components/metatag/time" . }} + {{ partial "single/components/metatag/categories" . }} +
+
+
+ {{/* {{.TableOfContents}} */}} + {{ .Content | emojify }} +
+ {{ partial "single/components/comments/comments" . }} +
+ {{ partial "single/components/metatag/tags" . }} +
+
\ No newline at end of file diff --git a/layouts/partials/single/homepage.html b/layouts/partials/single/homepage.html new file mode 100644 index 0000000..2e80535 --- /dev/null +++ b/layouts/partials/single/homepage.html @@ -0,0 +1,8 @@ +
+
+ {{ partial "single/components/title/small" . }} +
+
+ {{ .Content | emojify }} +
+
\ No newline at end of file -- cgit v1.3