From 1483ffedca544f5908340b33b5d29fee110800f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Tue, 16 May 2023 10:36:15 +0200 Subject: feat: improve article view --- layouts/_default/single.html | 51 ++++++++++++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 18 deletions(-) (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bc058fb7..1ef78b36 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,45 @@ {{ define "main" }}
- {{ partial "partials/full_post.html" . }} + +

{{ .Page.Title }}

+
+ {{- if not (eq .Page.Type "special") }} + + {{- end }} +
+ {{ .Page.Content }} +
-{{- if not (in .Params.category "pages") }} -
- {{- if isset .Params "tags" -}} + {{- if not (in .Params.category "pages") }} + {{- end }} + {{- if not (eq .Page.Type "special") }} + + {{- end }}
- {{ if or .Next .Prev -}} -
- {{- with .Prev }} ← Previous {{ end -}} - {{- with .Next -}}Next → {{ end -}} -
- {{ end -}} - - {{ end }} +{{ end }} {{ end }} -- cgit v1.2.3