microformats: add h-entry and h-feed #75

This commit is contained in:
Dmitry Kolosov 2021-01-20 22:12:50 +03:00
parent c1dce73359
commit 3620926038
6 changed files with 40 additions and 24 deletions

View file

@ -1,14 +1,14 @@
<article class="post-list">
<article class="post-list h-feed">
<header class="post-header">
<h1 class="post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h1>
</header>
<div class="content post-summary">
<div class="content post-summary p-summary">
{{ .Summary | safeHTML }}
</div>
{{ if and (.Truncated) (.Site.Params.readMore) }}
<div class="read-more">
<a href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
<a class="u-url" href="{{ .RelPermalink }}">{{ i18n "readMore" | humanize }}</a>
</div>
{{ end }}