diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2024-04-23 01:19:27 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2024-04-23 01:19:27 +0700 |
commit | 40f57ed72a601d8489a180f3bd9acd5e6c20d323 (patch) | |
tree | 6dd84fffd42e809f5123333deb8bb1a366a97cfc /layouts/partials/post-info.html | |
parent | 2cff39c15ffb512f87ed5f8a2f71603e9ff2d4c7 (diff) | |
download | blog-40f57ed72a601d8489a180f3bd9acd5e6c20d323.tar.gz |
Update theme
Diffstat (limited to 'layouts/partials/post-info.html')
-rw-r--r-- | layouts/partials/post-info.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html new file mode 100644 index 0000000..bb6e3c0 --- /dev/null +++ b/layouts/partials/post-info.html @@ -0,0 +1,28 @@ +<div class="post-info"> + {{ with .Params.date }} + <div> + <time>{{ .Format "2006-01-02" }}</time> + </div> + {{ end }} + + + <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> + {{ if .Params.tags }} + Tags: + <ul class="post-tags"> + {{ range .Params.tags }} + <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li> + {{ end }} + </ul> + {{ end }} + </div> +</div> |