diff options
author | Alan Pearce | 2018-06-17 19:39:43 +0200 |
---|---|---|
committer | Alan Pearce | 2018-06-17 19:39:43 +0200 |
commit | 6f7b8a114d998778a2cf7772a29feb3bff6cba81 (patch) | |
tree | 3a47cd07ca5e70665bf653c94c302b74e221f654 /layouts/_default/single.html | |
parent | 743253f995d352f51fc7b7681948b20c79609060 (diff) | |
download | hyde-6f7b8a114d998778a2cf7772a29feb3bff6cba81.tar.lz hyde-6f7b8a114d998778a2cf7772a29feb3bff6cba81.tar.zst hyde-6f7b8a114d998778a2cf7772a29feb3bff6cba81.zip |
Tweak whitespace
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 68 |
1 files changed, 33 insertions, 35 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fb048a2..d5d1774 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,37 +1,35 @@ {{ define "main" -}} -<article class="post h-entry"> - <header> - <a class="u-url" href="{{ .Permalink | replaceRE "/$" "" }}"> - <h1 class="post-title p-name">{{ .Title }}</h1> - </a> - <time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> - </header> - <main class="post-content e-content"> - {{ .Content }} - </main> - <footer class="footer"> - {{ if .Params.categories }} - <span> - Category: - {{ range .Params.categories }} - <a class="p-category" href="/categories/{{ . | lower | urlize }}/">{{ . }}</a> - {{ end }} - </span> - {{ end }} - {{ if .Params.tags }} - <p> - Tags: - {{ range .Params.tags }} - <a class="p-category" href="/tags/{{ . | urlize }}/">{{ . }}</a> - {{ end }} - - </p> - {{ end }} - </footer> -</article> - -{{ if .Site.DisqusShortname -}} -<h2>Comments</h2> -{{ template "_internal/disqus.html" . }} -{{- end }} + <article class="post h-entry"> + <header> + <a class="u-url" href="{{ .Permalink | replaceRE "/$" "" }}"> + <h1 class="post-title p-name">{{ .Title }}</h1> + </a> + <time class="post-date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> + </header> + <main class="post-content e-content"> + {{ .Content }} + </main> + <footer class="footer"> + {{- if .Params.categories }} + <span> + Category: + {{- range .Params.categories }} + <a class="p-category" href="/categories/{{ . | lower | urlize }}/">{{ . }}</a> + {{- end }} + </span> + {{- end }} + {{- if .Params.tags }} + <p> + Tags: + {{- range .Params.tags }} + <a class="p-category" href="/tags/{{ . | urlize }}/">{{ . }}</a> + {{- end }} + </p> + {{- end }} + </footer> + </article> + {{- if .Site.DisqusShortname }} + <h2>Comments</h2> + {{ template "_internal/disqus.html" . }} + {{- end }} {{- end }} |