diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-05-02 22:35:12 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-05-02 22:35:12 +0700 |
commit | bcf946428879b85b089296d1a1f1f3bd00cd6fec (patch) | |
tree | 803ee7be766c89f9d1dbeebd4dfd4dc4fa6bda4c /layouts/partials | |
parent | a1da654f3045fac0d727a40fd404313bc3d3ea4d (diff) | |
download | blog-bcf946428879b85b089296d1a1f1f3bd00cd6fec.tar.gz |
Edit layout for book review categories
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/postInfo.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/layouts/partials/postInfo.html b/layouts/partials/postInfo.html new file mode 100644 index 0000000..d7146fd --- /dev/null +++ b/layouts/partials/postInfo.html @@ -0,0 +1,34 @@ +{{ $dateFormat := "2006-01-02" }} +{{ if .Site.Params.dateFormat }} + {{ $dateFormat = .Site.Params.dateFormat }} +{{ end }} + +<div class="post-info"> + {{ if .Params.date }} + <div class="post-date dt-published">{{ .Params.date.Format $dateFormat }}</div> + {{ end }} + + <a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a> + <a href={{ .Site.BaseURL }} class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a> + + + <div class="post-taxonomies"> + {{ if .Params.categories }} + categories: + <ul class="post-categories"> + {{ range .Params.categories }} + <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li> + {{ end }} + </ul> + {{ end }} + <br> + tagged: + {{ if .Params.tags }} + <ul class="post-tags"> + {{ range .Params.tags }} + <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li> + {{ end }} + </ul> + {{ end }} + </div> +</div> |