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" }}
-
- {{ if .IsTranslated }} - {{ i18n "postAvailable" }} - {{ range .Translations }} - - {{ end}} - {{ end }} + + +
+

+ {{ .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 }}
+
-
-

{{ .Title | markdownify }}

+
- {{- if .Params.toc }} -
- -
- {{- end }} +
+

+ + + + + + + + {{ i18n "wordCount" .Page.WordCount }} +

-
+ {{- if and (default true .Params.showPageViews) (default true .Site.Params.showPageViews) }} + {{- if .Site.Params.goatCounter }} +

+ + + + + {{- partial "page_views.html" . -}} +

+ {{- end }} + {{- end }} + +

+ + + + + + + {{- $dateFormat := default "2006-01-02 15:04 -0700" .Site.Params.dateformNumTime }} + {{ dateFormat $dateFormat .Date.Local }} +

- + + {{- 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/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" }} -
- -
-

- - - - - {{ i18n "readingTime" .Page.ReadingTime }} - - {{- if .IsTranslated }} | {{ i18n "postAvailable" }} - {{- range .Translations }} - - {{- end}} - {{- end }} -

-
- -
-

- {{ .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 }} -
-
- -
- -
- {{- with .Params.tags }} -

- - - - - - {{- range . -}} - {{.}} - {{- end }} -

- {{- end }} - -

- - - - - - - - {{ i18n "wordCount" .Page.WordCount }} -

- - {{- if and (default true .Params.showPageViews) (default true .Site.Params.showPageViews) }} - {{- if .Site.Params.goatCounter }} -

- - - - - {{- partial "page_views.html" . -}} -

- {{- end }} - {{- end }} - -

- - - - - - - {{- if .Site.Params.dateformNumTime }} - {{ dateFormat .Site.Params.dateformNumTime .Date.Local }} - {{- else }} - {{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }} - {{- end }} -

- - {{- if .GitInfo }} -

- - - - - - - {{ .GitInfo.AbbreviatedHash }} - {{- " @ " -}} - {{- if .Site.Params.dateformNum -}} - {{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }} - {{- else -}} - {{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }} - {{- end }} -

- {{- end }} -
- - {{- if .Site.Params.EnableSharingButtons }} -
-
- {{ partial "sharing-buttons.html" . }} -
- {{- 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" }} -
- -
-

- - - - - {{ i18n "readingTime" .Page.ReadingTime }} - - {{- if .IsTranslated }} | {{ i18n "postAvailable" }} - {{- range .Translations }} - - {{- end}} - {{- end }} -

-
- -
-

- {{ .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 }} -
-
- -
- -
- {{- with .Params.tags }} -

- - - - - - {{- range . -}} - {{.}} - {{- end }} -

- {{- end }} - -

- - - - - - - - {{ i18n "wordCount" .Page.WordCount }} -

- - {{- if and (default true .Params.showPageViews) (default true .Site.Params.showPageViews) }} - {{- if .Site.Params.goatCounter }} -

- - - - - {{- partial "page_views.html" . -}} -

- {{- end }} - {{- end }} - -

- - - - - - - {{- if .Site.Params.dateformNumTime }} - {{ dateFormat .Site.Params.dateformNumTime .Date.Local }} - {{- else }} - {{ dateFormat "2006-01-02 15:04 -0700" .Date.Local }} - {{- end }} -

- - {{- if .GitInfo }} -

- - - - - - - {{ .GitInfo.AbbreviatedHash }} - {{- " @ " -}} - {{- if .Site.Params.dateformNum -}} - {{ dateFormat .Site.Params.dateformNum .GitInfo.AuthorDate.Local }} - {{- else -}} - {{ dateFormat "2006-01-02" .GitInfo.AuthorDate.Local }} - {{- end }} -

- {{- end }} -
- - {{- if .Site.Params.EnableSharingButtons }} -
-
- {{ partial "sharing-buttons.html" . }} -
- {{- 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