From 6e5ea9c054dfcf54406c73516a715aeb2301753f Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Sun, 15 Mar 2020 15:05:21 +0100 Subject: [PATCH] Do not display disqus in normal single pages --- layouts/_default/list.html | 8 +++++++- layouts/_default/single.html | 7 ------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 66d623e..24efa70 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,7 +15,13 @@
  • {{.Title}} - {{ if .Site.Params.dateformShort }}{{ .Date.Format .Site.Params.dateformShort }}{{ else }}{{ .Date.Format "Jan 2"}}{{ end }} + + {{ if .Site.Params.dateformShort }} + {{ .Date.Format .Site.Params.dateformShort }} + {{ else }} + {{ .Date.Format "Jan 2"}} + {{ end }} +
  • {{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1618eb3..eb385b0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -48,12 +48,5 @@

    {{ .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.DisqusShortname }} -
    - {{ template "_internal/disqus.html" . }} -
    - {{- end }} {{ end }}