ybbond

My site. The main domain
Log | Files | Refs | README | LICENSE | CC-LICENSE

commit 076731f596b27331236f2ce3ca9d5d79eba0d2cf
parent 3e129700eaadc782104f43a041ca7ea3362f92d6
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Mon,  4 May 2020 00:46:58 +0700

feature: h-entry for indieweb

Diffstat:
Massets/styles.scss | 6+++---
Mlayouts/_default/single.html | 15++++++++-------
Mlayouts/partials/footer/footer.html | 2+-

3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/assets/styles.scss b/assets/styles.scss
@@ -63,7 +63,7 @@ a {
     &:hover {
       color: themed('color-red');
     }
-    .link-white {
+    &.link-white {
       color: themed('color-text');
     }
   }
@@ -304,10 +304,10 @@ time {
         height: 5em;
       }
       & > a {
-        padding-left: 6.5em;
+        margin-left: 6.5em;
       }
       & > .p-locality {
-        padding-left: 6.5em;
+        margin-left: 6.5em;
       }
     }
   }
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,12 +1,13 @@
 {{ define "main" }}
-  <article class="content">
-    <h1>{{ .Title }}</h1>
-    {{ partial "components/headline-hash.html" .Content }}
-    {{ $date := .Date.Format "02 January 2006" }}
+  <article class="content h-entry">
+    <h1 class="p-name">{{ .Title }}</h1>
+    <div class="e-content">
+      {{ partial "components/headline-hash.html" .Content }}
+    </div>
+    <br>
+    <br>
+    <p><a class="u-url link-white" href={{ .Permalink }}>Published</a> on <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">{{ .Date.Format "02 January 2006" }}</time>, for stories like this:</p>
     {{ with .Params.tags }}
-      <br>
-      <br>
-      <p>Published on <time>{{ $date }}</time>, for stories like this:</p>
       <p class="taglist">
         {{ range . }}
           {{- partial "components/tagitem.html" . -}}
diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html
@@ -26,7 +26,7 @@
   <div class="hcard__description"><p>My <a>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>
+  <a class="p-name u-url u-uid p-author" href={{ .Site.Params.MainSiteURL }} rel="me">{{ substr .Site.Params.Author 0 20 }}.</a>
   <br>
   <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
   <br>