h-entry indieweb implementation: author hacks
This commit is contained in:
parent
72b0f1af63
commit
a65efc3b4c
|
@ -138,6 +138,9 @@ header
|
|||
padding-top: 1rem
|
||||
padding-bottom: 3rem
|
||||
|
||||
.p-author
|
||||
display: none
|
||||
|
||||
h1
|
||||
color: var(--accent)
|
||||
h2
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
<main class="single {{ .Section }}">
|
||||
<article class="h-entry">
|
||||
{{ partial "single-header" . }}
|
||||
<a id="top"></a>
|
||||
{{ partial "single-header" . }}
|
||||
<div class="e-content content">
|
||||
{{ .Content | safeHTML }}
|
||||
</div>
|
||||
|
|
|
@ -19,10 +19,8 @@
|
|||
<time datetime='{{ .Date.Format "2006-01-02" }}' class="dt-published">
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<use xlink:href='#cal1'></use>
|
||||
</svg>
|
||||
<a class="u-url" href="{{ .RelPermalink }}">
|
||||
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
||||
</a>
|
||||
</svg>
|
||||
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
|
||||
</time>
|
||||
{{ end }}
|
||||
{{ if isset .Params "categories" }}
|
||||
|
@ -38,6 +36,9 @@
|
|||
{{ end }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
<a rel="author" class="p-author h-card u-url u-uid" href="{{ .RelPermalink }}">
|
||||
{{ $.Site.Author.name }}
|
||||
</a>
|
||||
|
||||
|
||||
{{ if isset $.Params "tags" }}
|
||||
|
|
Loading…
Reference in New Issue