(1) Add Project feature. (2) Fix exampleSite. (3) Various minor improvements.

This commit is contained in:
George Cushen 2016-04-28 03:22:50 +01:00
commit af5deac2bf

View file

@ -0,0 +1,21 @@
<div class="article-metadata">
<span class="article-date">
<i class="fa fa-calendar"></i>
<time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format .Site.Params.date_format }}</time>
</span>
{{ if isset .Params "tags" }}
{{ $tagsLen := len .Params.tags }}
{{ if gt $tagsLen 0 }}
<span class="article-tags">
<i class="fa fa-tags"></i>
{{ range $k, $v := .Params.tags }}
<a class="article-tag-link" href="{{ $.Site.BaseURL }}tags/{{ . | urlize | lower }}">{{ . }}</a>
{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
{{ end }}
</span>
{{ end }}
{{ end }}
</div>