commit bdab5a891996e5d045a42407de0432e07631493b parent 4f31a93767fc39938e969b759a856e93b80c6a58 Author: Yohanes Bandung <bandungpenting@gmail.com> Date: Mon, 4 May 2020 01:51:50 +0700 refactor: make p-author also h-card Diffstat:
| M | layouts/_default/single.html | | | 2 | +- |
| M | layouts/partials/footer/footer.html | | | 2 | +- |
| M | layouts/partials/post/notes-item.html | | | 2 | +- |
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }} <article class="content h-entry"> <h1 class="p-name">{{ .Title }}</h1> - <p class="p-author" rel="author">{{ .Site.Params.Author }}</p> + <p class="p-author h-card" rel="author">{{ .Site.Params.Author }}</p> <div class="e-content"> {{ partial "components/headline-hash.html" .Content }} </div> diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html @@ -23,7 +23,7 @@ </center> <div class="hcard"> - <div class="hcard__description"><p>My <a>h-card</a></p></div> + <div class="hcard__description"><p>My <a href="http://microformats.org/wiki/representative-h-card-authoring">h-card</a></p></div> <div id="h-card" class="h-card"> <img class="u-photo" src={{ "logo.png" | absURL }} alt="Weird photo of yohanes bandung" /> <a class="p-name u-url u-uid" href={{ .Site.Params.MainSiteURL }} rel="me">{{ substr .Site.Params.Author 0 20 }}.</a> diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html @@ -1,7 +1,7 @@ {{ $dateformat := .Date.Format "2006-01-02 15:04" }} {{ $idslug := (print "date-" $dateformat "-") | urlize }} <div class="notes h-entry"> - <p class="p-author" rel="author">{{ .Site.Params.Author }}</p> + <p class="p-author h-card" rel="author">{{ .Site.Params.Author }}</p> <p class="notes__title" id={{ $idslug }}> <span> <time class="notes__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">