cach-radio/inc/themes/castanet/layouts/blog/summary.html

21 lines
620 B
HTML
Raw Permalink Normal View History

2022-12-15 22:36:40 +01:00
<header>
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
{{- if isset .Params "author" -}}
<h2 class="footer-heading">by {{ .Params.author }} - {{ dateFormat "02 January, 2006" .Date }}</h2>
{{- else -}}
<h2 class="footer-heading">{{ dateFormat "02 January, 2006" .Date }}</h2>
{{- end -}}
</header>
{{ if isset .Params "description" }}
{{ if ne .Params.descripton "" }}
{{ .Params.description | markdownify }}
{{ end }}
{{ else }}
{{ .Summary }}
{{ end }}
<footer>
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</footer>
<br>