commit 3f3c56432ec5515062238df20dba3bc0459555ba parent bdab5a891996e5d045a42407de0432e07631493b Author: Yohanes Bandung <bandungpenting@gmail.com> Date: Mon, 4 May 2020 01:54:14 +0700 refactor: make each post have h-card but hidden Diffstat:
| M | assets/content.scss | | | 2 | +- |
| M | layouts/_default/single.html | | | 9 | ++++++++- |
| M | layouts/partials/post/notes-item.html | | | 9 | ++++++++- |
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/assets/content.scss b/assets/content.scss @@ -9,7 +9,7 @@ font-family: $font-text; width: 100%; - .p-author { + .hcard { display: none; } diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -1,7 +1,14 @@ {{ define "main" }} <article class="content h-entry"> <h1 class="p-name">{{ .Title }}</h1> - <p class="p-author h-card" rel="author">{{ .Site.Params.Author }}</p> + <div id="h-card" class="hcard"> + <img class="u-photo" src={{ "logo.png" | absURL }} alt="Weird photo of yohanes bandung" /> + <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a> + <br> + <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> + <br> + <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span> + </div> <div class="e-content"> {{ partial "components/headline-hash.html" .Content }} </div> diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html @@ -1,7 +1,14 @@ {{ $dateformat := .Date.Format "2006-01-02 15:04" }} {{ $idslug := (print "date-" $dateformat "-") | urlize }} <div class="notes h-entry"> - <p class="p-author h-card" rel="author">{{ .Site.Params.Author }}</p> + <div id="h-card" class="hcard"> + <img class="u-photo" src={{ "logo.png" | absURL }} alt="Weird photo of yohanes bandung" /> + <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a> + <br> + <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a> + <br> + <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span> + </div> <p class="notes__title" id={{ $idslug }}> <span> <time class="notes__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">