Commit 70a49416 authored by Rajesh Shenoy's avatar Rajesh Shenoy Committed by GitHub

Merge pull request #30 from samn/skip-empty-content-date

Don't show "PUBLISHED ON" for content without dates
parents 79d8f2c1 ddea1189
......@@ -5,7 +5,7 @@
{{ if ne .Params.showpagemeta false }}
<div class="col-md-12">
<h6 class="text-left meta">
PUBLISHED ON {{ .Date.Format .Site.Params.dateformat | upper }}
{{ if not .Date.IsZero }} PUBLISHED ON {{ .Date.Format .Site.Params.dateformat | upper }} {{end}}
{{ if isset .Params "categories" }}
{{ $total := len .Params.categories }}
{{ if gt $total 0 }}
......
......@@ -4,7 +4,7 @@
<li class="list-entry">
<a class="list-entry-link" href="{{ .Permalink }}">{{ .Title }}</a>
<p class="meta">
{{ .Date.Format .Site.Params.dateformat | upper }}
{{ if not .Date.IsZero }} {{ .Date.Format .Site.Params.dateformat | upper }} {{end}}
<span class="category">
{{ if isset .Params "categories" }}
{{ $total := len .Params.categories }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment