mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 10:50:34 -05:00
Added more microformats2 metadata to posts
This commit is contained in:
parent
266b736e6b
commit
0cacd5acc5
2 changed files with 6 additions and 2 deletions
|
@ -5,8 +5,12 @@
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
<main>
|
<main>
|
||||||
<article class="h-entry">
|
<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>
|
<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 "}}
|
{{ .Scratch.Set "beforeDateString" "Published on "}}
|
||||||
{{ partial "date.html" . }}
|
{{ partial "date.html" . }}
|
||||||
{{ partial "reading_time.html" . }}
|
{{ partial "reading_time.html" . }}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ range .Param "tags" }}
|
{{ range .Param "tags" }}
|
||||||
{{ $name := . }}
|
{{ $name := . }}
|
||||||
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
|
{{ 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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue