Added more microformats2 metadata to posts

This commit is contained in:
Brandon Rozek 2022-05-16 17:23:55 -04:00
parent 266b736e6b
commit 0cacd5acc5
2 changed files with 6 additions and 2 deletions

View file

@ -5,8 +5,12 @@
{{ partial "header.html" . }}
<main>
<article class="h-entry">
<h1 class='title'>{{ .Title }}</h1>
<h1 class='title p-name'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<div style="display: none;" rel="author" class="h-card p-author">
<img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/>
<span > {{ .Site.Params.Author }}</span>
</div>
{{ .Scratch.Set "beforeDateString" "Published on "}}
{{ partial "date.html" . }}
{{ partial "reading_time.html" . }}

View file

@ -4,7 +4,7 @@
{{ range .Param "tags" }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
<li><a class="p-category" href="{{ .Permalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>