summaryrefslogtreecommitdiff
path: root/themes/new_theme/layouts/_default/summary.html
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-06-05 16:57:53 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-06-05 16:57:53 +0200
commit983b64ca51f5e769f790a5ebc55e3808157b8d94 (patch)
tree4fb52d8e2f449e44a51ed0549cec9debbcd3d157 /themes/new_theme/layouts/_default/summary.html
parentff7e6bde0be9ac60e694097ce3598f9b552c4807 (diff)
downloadwww-andreasbaumann-cc-983b64ca51f5e769f790a5ebc55e3808157b8d94.tar.gz
www-andreasbaumann-cc-983b64ca51f5e769f790a5ebc55e3808157b8d94.tar.bz2
updated to newest theme supporting newer hugo versions
Diffstat (limited to 'themes/new_theme/layouts/_default/summary.html')
-rw-r--r--themes/new_theme/layouts/_default/summary.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/themes/new_theme/layouts/_default/summary.html b/themes/new_theme/layouts/_default/summary.html
new file mode 100644
index 0000000..df7428d
--- /dev/null
+++ b/themes/new_theme/layouts/_default/summary.html
@@ -0,0 +1,32 @@
+<article class="list__item post">
+ {{- if .Params.thumbnail }}
+ <figure class="list__thumbnail">
+ <a href="{{ .Permalink }}">
+ <img src="{{ .Params.thumbnail | relURL }}" alt="{{ .Title }}" />
+ </a>
+ </figure>
+ {{- end }}
+ <header class="list__header">
+ <h3 class="list__title post__title ">
+ <a href="{{ .RelPermalink }}" rel="bookmark">
+ {{ .Title }}
+ </a>
+ </h3>
+ {{- with .Params.lead }}
+ <p class="list__lead post__lead">{{ . }}</p>
+ {{- end }}
+ {{ with partial "post_meta.html" . -}}
+ <div class="list__meta meta">{{ . }}</div>
+ {{- end }}
+ </header>
+ <div class="content list__excerpt post__content clearfix">
+ {{ .Summary }}
+ </div>
+ {{- if .Site.Params.readmore }}
+ {{- if .Truncated }}
+ <div class="list__footer clearfix">
+ <a class="list__footer-readmore btn" href="{{ .RelPermalink }}">{{ T "read_more" }}</a>
+ </div>
+ {{- end }}
+ {{- end }}
+</article> \ No newline at end of file