added all files from previous iterations
[theme-danix.xyz.git] / layouts / partials / funcs / categories.html
diff --git a/layouts/partials/funcs/categories.html b/layouts/partials/funcs/categories.html
new file mode 100644 (file)
index 0000000..8c32ac9
--- /dev/null
@@ -0,0 +1,13 @@
+{{ with .Params.categories }}
+<div class="post-cats">
+       <span>Published in:</span>
+       <ul class="article-tags">
+               {{ range . }}
+               {{ $href := print (absURL "categories/") (urlize .) }}
+               <li>
+                       <a href="{{ $href }}">{{ . }}</a>
+               </li>
+               {{ end }}
+       </ul>
+</div>
+{{ end }}