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

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post/date.html')
-rw-r--r--layouts/partials/post/date.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/post/date.html b/layouts/partials/post/date.html
index e24600f..b440287 100644
--- a/layouts/partials/post/date.html
+++ b/layouts/partials/post/date.html
@@ -1,6 +1,8 @@
+{{ if .Date }}
<span class="article-date">
<i class="icon icon-calendar-check"></i>
<a href="{{- .Permalink }}" class="{{ .Scratch.Get "class_name" }}">
<time datetime="{{ .Date }}" itemprop="datePublished">{{- .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</time>
</a>
-</span> \ No newline at end of file
+</span>
+{{ end }} \ No newline at end of file