Add 'more' link when content is truncated
This commit is contained in:
parent
5b778111cf
commit
c2add684b2
|
@ -5,14 +5,16 @@
|
||||||
{{ $months := dict "January" "Januar" "February" "Februar" "March" "März" "April" "April" "May" "Mai" "June" "Juni" "July" "Juli" "August" "August" "September" "September" "October" "Oktober" "November" "November" "December" "Dezember" }}
|
{{ $months := dict "January" "Januar" "February" "Februar" "March" "März" "April" "April" "May" "Mai" "June" "Juni" "July" "Juli" "August" "August" "September" "September" "October" "Oktober" "November" "November" "December" "Dezember" }}
|
||||||
{{ range $pagination.Pages }}
|
{{ range $pagination.Pages }}
|
||||||
<p class="date">{{ index $days (.Date.Format "Monday") }}, {{ .Date.Format "02" }}. {{ index $months (.Date.Format "January") }} {{ .Date.Format "2006" }}</p>
|
<p class="date">{{ index $days (.Date.Format "Monday") }}, {{ .Date.Format "02" }}. {{ index $months (.Date.Format "January") }} {{ .Date.Format "2006" }}</p>
|
||||||
{{ $page := . }}
|
|
||||||
<article class="preview">
|
<article class="preview">
|
||||||
{{ with .Resources.GetMatch "image.jpg" }}
|
{{ with .Resources.GetMatch "image.jpg" }}
|
||||||
<section class="image"><img alt="{{ .Title }}" src="{{ .RelPermalink }}"></section>
|
<section class="image"><img alt="{{ .Title }}" src="{{ .RelPermalink }}"></section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section class="text">
|
<section class="text">
|
||||||
<h2><a href="{{ $page.RelPermalink }}">{{ $page.Title }}</a></h2>
|
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||||
{{ $page.Summary }}
|
{{ .Summary }}
|
||||||
|
{{ if .Truncated }}
|
||||||
|
<a href="{{ .RelPermalink }}">> Mehr <</a>
|
||||||
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue