Browse Source

Add trailing url to tag

Zachary Betz 6 years ago
parent
commit
67ba008385
1 changed files with 2 additions and 1 deletions
  1. 2 1
      layouts/post/single.html

+ 2 - 1
layouts/post/single.html

@@ -19,7 +19,8 @@
               <svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
                 <use xlink:href="#tag"></use>
               </svg>
-              <a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>
+              {{ $href := print ("tags/" | absLangURL) (. | urlize) "/" }}
+              <a href="{{ $href }}">{{ . }}</a>
             </li>
           {{ end }}
         </ul>