From 9e8cb50889dfa24e886557993710fe5279c45891 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 21 Jan 2018 22:23:51 +0000 Subject: [PATCH] post: Refactor code and remove unused class --- layouts/_default/single.html | 54 +++++++++++++++++------------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ace5738f..f2141f07 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,43 +6,39 @@ {{ partial "header_image.html" . }}
-
-

{{ .Title }}

+

{{ .Title }}

- {{ partial "article_metadata" (dict "content" . "is_list" 0) }} + {{ partial "article_metadata" (dict "content" . "is_list" 0) }} -
- {{ .Content }} -
- - {{ partial "tags.html" . }} +
+ {{ .Content }}
-
- + {{ partial "tags.html" . }} -{{ $related := .Site.RegularPages.Related . | first 5 }} -{{ with $related }} -
-
-

{{ i18n "related" }}

-
    - {{ range . }} -
  • {{ .Title }}
  • + {{ $related := .Site.RegularPages.Related . | first 5 }} + {{ with $related }} +
    +
    +

    {{ i18n "related" }}

    + +
    {{ end }} -
-
-{{ end }} -{{ if .Site.Params.section_pager }} -
- {{ partial "section_pager.html" . }} -
-{{ end }} + {{ if .Site.Params.section_pager }} +
+ {{ partial "section_pager.html" . }} +
+ {{ end }} -
- {{ partial "comments.html" . }} -
+ {{ partial "comments.html" . }} + +
+ {{ partial "footer_container.html" . }} {{ partial "footer.html" . }}