Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / partials / post-meta.html
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--layouts/partials/post-meta.html16
diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html
new file mode 100644
index 0000000..f39b050
--- /dev/null
+++ b/layouts/partials/post-meta.html
@@ -0,0 +1,16 @@
+<div class = 'post_meta'>
+ <svg class="icon">
+ <use xlink:href="#calendar"></use>
+ </svg>
+ <span class="post_date">
+ {{ .Date.Format "Jan 2, 2006" -}}
+ </span>
+ {{- with .Params.tags -}}
+ {{- range . }}
+ {{- $tag := . | urlize }}
+ <a href = '{{ absURL (printf "tags/%s" $tag) }}' class = 'post_tag button button_translucent'>
+ {{- . }}
+ </a>
+ {{- end }}
+ {{- end }}
+</div>