From e938e972b6afc0f39dd695a1fca006a884a139e5 Mon Sep 17 00:00:00 2001 From: panr Date: Sun, 31 Mar 2019 19:28:38 +0200 Subject: [PATCH] Fix format --- layouts/_default/list.html | 31 +++++---- layouts/_default/single.html | 120 ++++++++++++++++++----------------- 2 files changed, 80 insertions(+), 71 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 5010828..25ea32c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -17,33 +17,36 @@ {{ if .Params.tags }} - - {{ range .Params.tags }} - #{{ . }}  - {{ end }} - + + {{ range .Params.tags }} + # + {{- . -}} +   + {{ end }} + {{ end }} {{ with .Params.Cover }} - + {{ end }}
{{ if .Params.showFullContent }} - {{ .Content | markdownify }} + {{ .Content | markdownify }} {{ else if .Description }} - {{ .Description | markdownify }} + {{ .Description | markdownify }} {{ else }} - {{ if .Truncated }} - {{ .Summary | markdownify }} - {{ end }} + {{ if .Truncated }} + {{ .Summary | markdownify }} + {{ end }} {{ end }}
{{ if not .Params.showFullContent }} -
- {{ $.Site.Params.ReadMore }} → -
+
+ {{ $.Site.Params.ReadMore }} → +
{{ end }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 700d737..dafde5a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,61 +1,67 @@ {{ define "main" }} -
-

{{ .Title | markdownify }}

- - - {{ if .Params.tags }} - +
+

+ {{ .Title | markdownify }}

+ + + {{ if .Params.tags }} + + {{ end }} + + {{ with .Params.Cover }} + + {{ end }} + + {{ if .Params.Toc }} +
+ {{ .TableOfContents }} +
+ {{ end }} + +
+ {{ .Content }} +
+ {{ if or .NextInSection .PrevInSection }} + + {{ end }} + + {{ partial "comments.html" . }} +
{{ end }}