2023-11-18 09:19:26 +01:00
< article class = "post-list h-feed post-card" >
2021-12-19 12:10:10 +01:00
< div class = "post-header" >
< header >
2024-07-25 10:08:42 +02:00
{{ $random := (md5 .Title) }}
2024-09-11 06:06:53 +02:00
{{ $iconPath := printf "%sicon.svg" .File.Dir }}
2024-07-25 10:08:42 +02:00
{{ if fileExists $iconPath }}
< style >
.post-icon-{{ $random }}::before {
display: inline-block;
content: '';
2024-09-11 06:06:53 +02:00
background: url("/{{ $iconPath }}");
2024-07-25 10:08:42 +02:00
width: 1.2em;
height: 1.2em;
background-size: auto 100%;
vertical-align: text-bottom;
}
< / style >
{{ end }}
< h1 class = "p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}} {{ if fileExists $iconPath}}post-icon-{{$random}}{{end}}" >
< a class = "u-url" href = "{{ .RelPermalink }}" > {{ trim .Title " " | markdownify }}< / a >
< / h1 >
2021-12-19 12:10:10 +01:00
< / header >
2021-07-08 22:32:45 +02:00
{{ partial "post-language-switcher.html" . }}
2021-12-19 12:10:10 +01:00
< / div >
2020-06-06 21:05:21 +02:00
2021-04-13 19:20:58 +02:00
{{ if not .Site.Params.disableSummary }}
< div class = "content post-summary p-summary" >
2021-10-20 13:55:39 +02:00
{{ .Summary | safeHTML }}
2021-04-13 19:20:58 +02:00
< / div >
{{ end }}
2024-07-25 10:08:42 +02:00
2020-08-12 21:25:08 +02:00
{{ if and (.Truncated) (.Site.Params.readMore) }}
2020-06-06 21:05:21 +02:00
< div class = "read-more" >
2021-12-31 20:48:26 +01:00
< a class = "u-url" href = "{{ .RelPermalink }}" > {{ i18n "readMore" }}< / a >
2020-06-06 21:05:21 +02:00
< / div >
2020-08-12 21:25:08 +02:00
{{ end }}
2024-11-17 12:19:14 +01:00
{{ if .Store.Get "hasMermaid" }}
{{ partial "mermaid_support.html" . }}
{{ end }}
{{ if .Params.math }}
{{ partial "mathjax_support.html" . }}
{{ end }}
2024-04-09 14:03:09 +02:00
2021-07-09 18:00:52 +02:00
{{ partial "post-info.html" . }}
2024-04-09 14:03:09 +02:00
< / article >