diff --git a/layouts/partials/article_card.html b/layouts/partials/article_card.html index 0dcafd0..e263f1f 100644 --- a/layouts/partials/article_card.html +++ b/layouts/partials/article_card.html @@ -16,7 +16,9 @@
{{ if .Site.Params.imageInArticlePreview }} {{ if .Params.Image }} - + + + {{ end }} {{end}} {{ if (site.Params.articleSummary | default true) }} diff --git a/layouts/partials/js_paginator.html b/layouts/partials/js_paginator.html index 4ad83a7..81dfda4 100644 --- a/layouts/partials/js_paginator.html +++ b/layouts/partials/js_paginator.html @@ -8,9 +8,9 @@ } return res; } - function renderImage(image) { + function renderImage(image, link) { if (!image) return ''; - return `` + return ``; } function renderSingleArticle(article) { return ` @@ -20,15 +20,15 @@ ${article.title}- - ${article.date} - {{ if (.Site.Params.tagsInArticlePreview | default true) }} - ${renderTags(article.tags)} - {{ end }} + + ${article.date} + {{ if (.Site.Params.tagsInArticlePreview | default true) }} + ${renderTags(article.tags)} + {{ end }}
{{ if .Site.Params.imageInArticlePreview }} - ${renderImage(article.image)} - {{end}} + ${renderImage(article.image, article.link)} + {{ end }} {{ if (site.Params.articleSummary | default true) }}${article.summary}