diff options
author | amzrk2 | 2020-04-13 19:13:39 +0800 |
---|---|---|
committer | amzrk2 | 2020-04-13 19:13:39 +0800 |
commit | 6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad (patch) | |
tree | b13e4c3a49823b602ebb918c899dd4a964c1f445 /layouts/partials/post-meta.html | |
download | hugo-theme-fuji-6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad.tar.gz hugo-theme-fuji-6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad.tar.bz2 hugo-theme-fuji-6bdd1c4c0ea567c45fdecb1e858a99ee5da246ad.zip |
Initial commit
Diffstat (limited to 'layouts/partials/post-meta.html')
-rw-r--r-- | layouts/partials/post-meta.html | 12 |
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 |