fmartingr.com/themes/fmartingr/layouts/_default/list.html
Felipe M. da6be9678c
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
fix: avoid showing "read more" link on non-truncated posts
2025-04-05 19:42:38 +02:00

21 lines
721 B
HTML

{{ define "main" }}
{{ if ne .Title "Blogs" }}<h1>{{ .Title }}</h1>{{ end }}
{{ .Content }}
{{ range (.Paginate .Pages 7).Pages }}
<div class="artitle {{ $.Param "site_style.container_class" }}">
<h2 class="title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
<div class="info">
{{ partial "svg/calendar-event.svg" (dict "size" 24) }}
<span>{{ .Date.Format "January 2, 2006" }}</span>
</div>
<div class="summary content">{{ .Summary }}</div>
{{- if .Truncated -}}
<p class="text-right"><a href="{{ .RelPermalink }}">Read more &raquo;</a></p>
{{- end -}}
</div>
{{ end }}
<div class="center text-center">
{{ partial "pagination" . }}
</div>
{{ end }}