Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <upagge@mail.ru>2020-12-12 18:35:40 +0300
committeruPagge <upagge@mail.ru>2020-12-12 18:35:40 +0300
commit8beda839d9ad7774d25e3eff3873dd3e57261ce8 (patch)
tree3d3748e51d288cdfce93e9645edd4e0f5c7bbd0e /layouts/_default/summary.html
parent793aea7a3171c90ccdfd72842c20c36e97c55ae8 (diff)
hidden img and description mini post
Diffstat (limited to 'layouts/_default/summary.html')
-rw-r--r--layouts/_default/summary.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index abfad36..bf652d7 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -2,6 +2,7 @@
<article onclick="location.href='{{ $.RelPermalink }}'" class="single summary article-mini" itemscope itemtype="http://schema.org/Article">
{{- /* Featured image */ -}}
+ {{- if not $params.mini.hiddenImage -}}
{{- $image := $params.featuredimagepreview | default $params.featuredimage -}}
{{- with .Resources.GetMatch "featured-image" -}}
{{- $image = .RelPermalink -}}
@@ -14,6 +15,7 @@
{{- dict "Src" . "Title" $.Description "Resources" $.Resources | partial "plugin/image.html" -}}
</div>
{{- end -}}
+ {{- end -}}
<div class="article-text">
{{- /* Title */ -}}
<h2 class="single-title" itemprop="name headline">
@@ -60,6 +62,7 @@
</div>
{{- /* Summary content */ -}}
+ {{- if not $params.mini.hiddenDescription -}}
<div class="content">
{{- with .Summary -}}
{{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
@@ -67,6 +70,7 @@
{{- .Description | safeHTML -}}
{{- end -}}
</div>
+ {{- end -}}
{{- /* Footer */ -}}
<!-- <div class="post-footer">-->