Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/koirand/pulp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuki Koide <koirand.jp@gmail.com>2020-03-23 10:05:57 +0300
committerGitHub <noreply@github.com>2020-03-23 10:05:57 +0300
commit7aa4f02cd3307c674a9c8fadb00f138f1d2c4fb4 (patch)
tree8e44ed7c4c072166389fa37cdcfc233bfe5858e4
parent8ce69fef4c48c5ee809319b371cc1b668cbe10e0 (diff)
parent5e806e3b8bc45b96bba11b21cef0d5f538f8ac5c (diff)
Merge pull request #72 from Phyxius/no-zero-dates
Don't show date if not set
-rw-r--r--layouts/_default/single.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 4d1688f..a838639 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,9 +1,11 @@
{{ define "main"}}
<h1>{{ .Title }}</h1>
{{ partial "header.html" . }}
+ {{ if not .Date.IsZero }}
<!-- date -->
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
+ {{ end }}
<!-- tags -->
{{ if .Param "tags" }}
<div id="tags">