From 537dcd65367c4a54e24157a7722b33fd59b73334 Mon Sep 17 00:00:00 2001 From: Maik de Kruif Date: Sat, 12 Oct 2024 18:37:32 +0200 Subject: [PATCH] Generalize single.html as they were the same --- themes/maik-blog/layouts/_default/single.html | 215 +++++++++++++----- themes/maik-blog/layouts/posts/single.html | 178 --------------- themes/maik-blog/layouts/writeups/single.html | 178 --------------- 3 files changed, 162 insertions(+), 409 deletions(-) delete mode 100644 themes/maik-blog/layouts/posts/single.html delete mode 100644 themes/maik-blog/layouts/writeups/single.html diff --git a/themes/maik-blog/layouts/_default/single.html b/themes/maik-blog/layouts/_default/single.html index 4d078b0..4e2d4d0 100644 --- a/themes/maik-blog/layouts/_default/single.html +++ b/themes/maik-blog/layouts/_default/single.html @@ -1,66 +1,175 @@ {{ define "main" }}
-
{{ end }} \ No newline at end of file diff --git a/themes/maik-blog/layouts/posts/single.html b/themes/maik-blog/layouts/posts/single.html deleted file mode 100644 index 70bbc79..0000000 --- a/themes/maik-blog/layouts/posts/single.html +++ /dev/null @@ -1,178 +0,0 @@ -{{ define "main" }} -
- - - -
-

- {{ .Title | markdownify }} -

- {{- with .Params.Subtitle }} -

{{ . | markdownify }}

- {{- end }} - - {{- if .Params.toc }} -
- -
- {{- end }} - - {{- if .Params.Cover }} - {{- partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify) "class" "post-cover") }} - {{- end }} - -
- {{ .Content }} -
-
- -
- - - - {{- if .Site.Params.EnableSharingButtons }} -
- - {{- end }} - - {{- if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }} - - {{- end }} - - - {{- if .Site.Config.Services.Disqus.Shortname }} - {{- if not (eq .Params.Comments "false") }} -
- {{ template "_internal/disqus.html" . }} -
- {{- end }} - {{- end }} - -
-{{ end }} \ No newline at end of file diff --git a/themes/maik-blog/layouts/writeups/single.html b/themes/maik-blog/layouts/writeups/single.html deleted file mode 100644 index 70bbc79..0000000 --- a/themes/maik-blog/layouts/writeups/single.html +++ /dev/null @@ -1,178 +0,0 @@ -{{ define "main" }} -
- - - -
-

- {{ .Title | markdownify }} -

- {{- with .Params.Subtitle }} -

{{ . | markdownify }}

- {{- end }} - - {{- if .Params.toc }} -
- -
- {{- end }} - - {{- if .Params.Cover }} - {{- partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify) "class" "post-cover") }} - {{- end }} - -
- {{ .Content }} -
-
- -
- - - - {{- if .Site.Params.EnableSharingButtons }} -
- - {{- end }} - - {{- if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }} - - {{- end }} - - - {{- if .Site.Config.Services.Disqus.Shortname }} - {{- if not (eq .Params.Comments "false") }} -
- {{ template "_internal/disqus.html" . }} -
- {{- end }} - {{- end }} - -
-{{ end }} \ No newline at end of file