Browse Source

Add tags to post

Fixes #11
master
digitalcraftsman 9 years ago
parent
commit
9f9772fa9c
  1. 12
      layouts/_default/single.html

12
layouts/_default/single.html

@ -6,7 +6,17 @@
<article class="post">
<header>
<h1>{{ .Title }}</h1>
<h2 class="headline">{{ .Date.Format "January 2, 2006" }}</h2>
<h2 class="headline">
{{ .Date.Format "January 2, 2006" }}
<br>
{{ with .Params.tags }}
{{ if ge (len .) 1 }}
{{ range . }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">{{ . }}</a>
{{ end }}
{{ end }}
{{ end}}
</h2>
</header>
<section id="post-body">
{{ .Content }}

Loading…
Cancel
Save