diff options
author | Anton T Johansson <a@tetov.se> | 2018-03-02 13:39:57 +0300 |
---|---|---|
committer | Emir Ribić <ribice@gmail.com> | 2018-03-02 13:39:57 +0300 |
commit | 59d4984872a8e081428c6680f5f5bc1f4ff13b46 (patch) | |
tree | 66020fa52b64e22d318299daa0c01fb06435c410 | |
parent | 8ca0c6c74249f9a5df65f5ef48d2e72cc4eaaaed (diff) |
Only include date in single.html if it is set. (#14)
* Only include date in single.html if it is set.
-rw-r--r-- | layouts/_default/single.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index dda9d29..2d1d3b2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@ {{ partial "tags" .Params.tags }} {{ end }} </div> - <h2 class="subtitle is-6">{{ .Date.Format "January 2, 2006" }}</h2> + {{if not .Date.IsZero }}<h2 class="subtitle is-6">{{ .Date.Format "January 2, 2006" }}</h2>{{ end }} <h1 class="title">{{ .Title }}</h1> {{ if and (.Site.Params.Info.adsense) (.Params.adsenseTop) }} {{ partial "adsense" . }} @@ -24,4 +24,4 @@ </div> </section> {{ partial "disqus" . }} -{{ partial "footer" . }}
\ No newline at end of file +{{ partial "footer" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9c6691c..76fbbf6 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -11,7 +11,7 @@ {{ if .Site.Params.Info.enableSocial }} {{- partial "social/opengraph" . -}} {{ end }} -<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css"/> +<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css"/> {{- range .Site.Params.Assets.customCSS -}} <link rel='stylesheet' href='{{ . | relURL }}'> {{- end -}} |