Browse Source

article has optional date

Alexander Avery 3 weeks ago
parent
commit
885195eb80
  1. 2
      layouts/partials/article.html

2
layouts/partials/article.html

@ -4,9 +4,11 @@
<img src={{ $image.RelPermalink }} alt="{{ .Params.featured.alt }}"> <img src={{ $image.RelPermalink }} alt="{{ .Params.featured.alt }}">
</a> </a>
<h3 class="title">{{ .Title | markdownify }}</h3> <h3 class="title">{{ .Title | markdownify }}</h3>
{{- if not (.Params.hideDate) }}
{{- with .Date }} {{- with .Date }}
<p>{{ .Format "2006/01/02" }}</p> <p>{{ .Format "2006/01/02" }}</p>
{{- end }} {{- end }}
{{- end }}
{{- with index (.GetTerms "tags") 0 }} {{- with index (.GetTerms "tags") 0 }}
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a> <a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
{{- end }} {{- end }}

Loading…
Cancel
Save