summaryrefslogtreecommitdiffstats
path: root/layouts/partials/post-meta.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post-meta.html')
-rw-r--r--layouts/partials/post-meta.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html
new file mode 100644
index 0000000..9d9832d
--- /dev/null
+++ b/layouts/partials/post-meta.html
@@ -0,0 +1,12 @@
+<span class="post-meta-item post-meta-date">
+ <time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }} | </time>
+</span>
+<span class="post-meta-item post-meta-tags">
+ {{ if .Params.tags }}
+ {{ range .Params.tags }}
+ <a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}/">{{ . }}</a>
+ {{ end }}
+ {{ else }}
+ <span>无标签</span>
+ {{ end }}
+</span> \ No newline at end of file