{{ .Page.Content }} diff --git a/layouts/partials/cards/post.html b/layouts/partials/cards/post.html index e313d02..4d2e9f8 100644 --- a/layouts/partials/cards/post.html +++ b/layouts/partials/cards/post.html @@ -7,18 +7,11 @@
{{ .Title }}

{{ .Summary }}

+ {{ if and site.Params.features.tags.enable site.Params.features.tags.on_card }} + {{ partial "misc/tags.html" .Params.tags }} + {{ end }}
diff --git a/layouts/partials/misc/tags.html b/layouts/partials/misc/tags.html new file mode 100644 index 0000000..166fde5 --- /dev/null +++ b/layouts/partials/misc/tags.html @@ -0,0 +1,8 @@ +
+ +
diff --git a/layouts/partials/sections/recent-posts.html b/layouts/partials/sections/recent-posts.html index bb1bc40..87792b4 100644 --- a/layouts/partials/sections/recent-posts.html +++ b/layouts/partials/sections/recent-posts.html @@ -20,7 +20,7 @@
{{ range first $numShow (where (where site.RegularPages.ByDate.Reverse "Type" "posts" ) "Layout" "!=" "search") }} - {{ partial "cards/recent-post.html" . }} + {{ partial "cards/post.html" . }} {{ end }}
diff --git a/package.hugo.json b/package.hugo.json index c000e52..3ae562b 100644 --- a/package.hugo.json +++ b/package.hugo.json @@ -43,6 +43,7 @@ "mark.js": "^8.11.1", "mermaid": "^9.2.1", "plyr": "^3.7.2", - "popper.js": "^1.16.1" + "popper.js": "^1.16.1", + "include-media": "^1.4.10" } }