diff --git a/README.md b/README.md index 2bee94d..66b1d1d 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ summaryLength = 70 # number of words for article summaries discreteCards = false # enable discrete card style; default false discreteTags = false # enable discrete tag style; default false + tagsInArticlePreview = true # enable tags list in the article preview card gridView = false # show post list as a grid. goes well with discreteCards highlightBgColor = "#34363b" # card and circle navigation background color for discrete card mode diff --git a/layouts/partials/article_card.html b/layouts/partials/article_card.html index ff725af..d058a14 100644 --- a/layouts/partials/article_card.html +++ b/layouts/partials/article_card.html @@ -6,7 +6,7 @@
{{ .Date.Format "2006-01-02" }} - {{ if .Params.tags }} + {{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }} | {{ range .Params.tags }} diff --git a/layouts/partials/featured_articles.html b/layouts/partials/featured_articles.html index cf621eb..59936f0 100644 --- a/layouts/partials/featured_articles.html +++ b/layouts/partials/featured_articles.html @@ -14,7 +14,7 @@
{{ .Date.Format "2006-01-02" }}
- {{ if .Params.tags }}
+ {{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
{{ range .Params.tags }}
diff --git a/layouts/partials/js_paginator.html b/layouts/partials/js_paginator.html
index bcb0791..a199d68 100644
--- a/layouts/partials/js_paginator.html
+++ b/layouts/partials/js_paginator.html
@@ -1,12 +1,11 @@