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

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

Don't show "PUBLISHED ON" for content without dates
parents 79d8f2c1 ddea1189
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 }}
+1 −1
Original line number Diff line number Diff line
@@ -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 }}