diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/single.html | 23 | ||||
| -rw-r--r-- | layouts/partials/breadcrumbs.html | 7 | 
2 files changed, 24 insertions, 6 deletions
| diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3eb46af..59ab477 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,7 +6,7 @@  <div {{ if .Param "autonumber" }} class="autonumber" {{ end }}> -  <div class=" single-intro-container"> +  <div class="single-intro-container">      {{/* Title and Summary */}} @@ -32,11 +32,28 @@    </div> -  {{/* {{ .Params.tags }} */}} +  {{ if .Param "showTags" }} + +  {{ $taxonomy := "tags" }} + +  {{ with .Param $taxonomy }} +  {{ $last := sub (. | len) 1 }} + +  <div class="single-tags"> +    {{ range $index, $tag := . }} +    {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} +    <span> +      <a href="{{ .Permalink }}">#{{ $tag | urlize }}</a> +    </span> +    {{ end }} +    {{ end }} +  </div> +  {{ end }} +  {{ end }}    {{/* Table of Content */}} -  {{if .Param "toc" }} +  {{ if .Param "toc" }}    <aside class="toc">      <p><strong>Table of contents</strong></p>      {{ .TableOfContents }} diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index 9040d1f..30a4df1 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -1,8 +1,9 @@ +{{ if .Site.Params.breadcrumbs }}  <div class="breadcrumbs">      {{ range .Ancestors.Reverse }}      <a href="{{ .RelPermalink }}">{{ .Title }}</a>      <span class="breadcrumbs-separator"> > </span>      {{ end }} - -    <a href="{{ .RelPermalink }}">{{ .Title }}</a> -</div>
\ No newline at end of file +    <a class="breadcrumbs-current" href="{{ .RelPermalink }}">{{ .Title }}</a> +</div> +{{ end }}
\ No newline at end of file | 
