initial commit
This commit is contained in:
32
themes/hugo-dpsg/layouts/_default/summary.html
Normal file
32
themes/hugo-dpsg/layouts/_default/summary.html
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user