h-entry indieweb implementation: author hacks

This commit is contained in:
Wouter Groeneveld 2021-02-28 11:16:03 +01:00
parent 72b0f1af63
commit a65efc3b4c
3 changed files with 9 additions and 5 deletions

View File

@ -138,6 +138,9 @@ header
padding-top: 1rem padding-top: 1rem
padding-bottom: 3rem padding-bottom: 3rem
.p-author
display: none
h1 h1
color: var(--accent) color: var(--accent)
h2 h2

View File

@ -4,8 +4,8 @@
<main class="single {{ .Section }}"> <main class="single {{ .Section }}">
<article class="h-entry"> <article class="h-entry">
{{ partial "single-header" . }}
<a id="top"></a> <a id="top"></a>
{{ partial "single-header" . }}
<div class="e-content content"> <div class="e-content content">
{{ .Content | safeHTML }} {{ .Content | safeHTML }}
</div> </div>

View File

@ -19,10 +19,8 @@
<time datetime='{{ .Date.Format "2006-01-02" }}' class="dt-published"> <time datetime='{{ .Date.Format "2006-01-02" }}' class="dt-published">
<svg class='icon icon-text' width='24' height='24'> <svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#cal1'></use> <use xlink:href='#cal1'></use>
</svg> </svg>
<a class="u-url" href="{{ .RelPermalink }}"> {{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</a>
</time> </time>
{{ end }} {{ end }}
{{ if isset .Params "categories" }} {{ if isset .Params "categories" }}
@ -38,6 +36,9 @@
{{ end }} {{ end }}
</h3> </h3>
{{ end }} {{ end }}
<a rel="author" class="p-author h-card u-url u-uid" href="{{ .RelPermalink }}">
{{ $.Site.Author.name }}
</a>
{{ if isset $.Params "tags" }} {{ if isset $.Params "tags" }}