diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 249ea3d..d1ed05f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,7 +16,7 @@ <ul> {{ range (where .Data.Pages "Section" "!=" "") }} <li>{{ .Date.Format "Jan 2nd, 2006" }} - <a href="{{ .URL }}">{{ .Title | markdownify }}</a> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> </li> {{ end }} </ul> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cb76f1a..cf7bb07 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,6 +10,15 @@ <div class="content"> <h1>{{ .Title | markdownify }}</h1> </div> + <div class="info"> + <div class="content"> + {{ range $i := (slice "categories" "tags") }} + {{ with ($.Param $i) }} + {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}<br> + {{ end }} + {{ end }} + </div> + </div> </div> </header> <div class="content"> |