From bcf946428879b85b089296d1a1f1f3bd00cd6fec Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Sun, 2 May 2021 22:35:12 +0700 Subject: Edit layout for book review categories --- layouts/_default/single.html | 7 ++++++- layouts/partials/postInfo.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/postInfo.html (limited to 'layouts') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f74ec16..b3783eb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,14 +13,19 @@
{{ .Content }} + {{ if in .Params.categories "book review" }} +
+ {{ i18n "BookShare" }} + {{ end }}
{{ partial "postInfo.html" . }} {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} -{{ partial "paginationPost.html" . }} + {{ partial "paginationPost.html" . }} {{ end }} + {{ partial "custom-webring.html" }} {{ end }} 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 }} + +
+ {{ if .Params.date }} + + {{ end }} + + {{ .Permalink }} + {{ .Params.author | default .Site.Params.author }} + + +
+ {{ if .Params.categories }} + categories: +
    + {{ range .Params.categories }} +
  • {{ . }}
  • + {{ end }} +
+ {{ end }} +
+ tagged: + {{ if .Params.tags }} + + {{ end }} +
+
-- cgit 1.4.1