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"> <article class="post">
<header> <header>
<h1>{{ .Title }}</h1> <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> </header>
<section id="post-body"> <section id="post-body">
{{ .Content }} {{ .Content }}

Loading…
Cancel
Save