ybbond

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

commit 9860ca90ce4ad15aa78418271dd0c2b146d38f03
parent 940f5fe7d4c868e3e681b06e4d92ee92b9c18c69
Author: Yohanes Bandung Bondowoso <hi@ybbond.id>
Date:   Thu, 20 May 2021 03:54:37 +0700

refactor: try to fix indieweb issue

Diffstat:
Mlayouts/_default/list.html | 8++++----
Mlayouts/_default/single.html | 8++++----
Mlayouts/partials/components/tagitem.html | 4++--
Mlayouts/partials/post/notes-item.html | 15+++++----------
Mlayouts/partials/post/responses-item.html | 16+++++-----------

5 files changed, 20 insertions(+), 31 deletions(-)

diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -1,8 +1,8 @@
 {{ define "main" }}
   <div class="h-feed">
-    <div id="h-card" class="hcard" hidden="">
-      <img class="u-photo" src={{ "logo.png" | absURL }} />
-      <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
+    <div id="h-card" class="h-card u-author" hidden="">
+      <data class="u-photo" value={{ "logo.png" | absURL }}></data>
+      <a class="p-author" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
       <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
       <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
       <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
@@ -17,7 +17,7 @@
     <div class="list__header content">
       {{ $isTag := eq .Type "tags" }}
       {{ with .Title }}
-        <a href={{ $selflink }} class="u-url no-outline">
+        <a href={{ $selflink }} class="no-outline u-url">
           <h1 class="p-name">
               {{ cond $isTag "Tag «" nil}}{{ . }}{{ cond $isTag "»" nil}}
           </h1>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -14,9 +14,9 @@
   {{ else }}
     <article class="content h-entry">
       <h1 class="p-name">{{ .Title }}</h1>
-      <div id="h-card" class="hcard" hidden="">
-        <img class="u-photo" src={{ "logo.png" | absURL }} />
-        <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
+      <div id="h-card" class="h-card u-author" hidden="">
+        <data class="u-photo" value={{ "logo.png" | absURL }}></data>
+        <a class="p-author" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
         <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
         <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
         <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
@@ -26,7 +26,7 @@
           {{ end }}
         {{ end }}
       </div>
-      <div class="p-content e-content">
+      <div class="e-content">
         {{ partial "components/content.html" .Content }}
       </div>
 
diff --git a/layouts/partials/components/tagitem.html b/layouts/partials/components/tagitem.html
@@ -1 +1 @@
-<a class="tagitem" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a>-
\ No newline at end of file
+<a class="tagitem p-category" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a>+
\ No newline at end of file
diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html
@@ -1,20 +1,15 @@
 {{ $dateformat := .Date.Format "2006-01-02 15:04" }}
 {{ $idslug := (print "date-" $dateformat "-") | urlize }}
 <div class="content notes h-entry" id={{ $idslug }}>
-  <div id="h-card" class="hcard" hidden="">
-    <img class="u-photo" src={{ "logo.png" | absURL }} />
-    <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
-    <br>
+  <div id="h-card" class="h-card u-author" hidden="">
+    <data class="u-photo" value={{ "logo.png" | absURL }}></data>
+    <a class="p-author" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
     <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
-    <br>
     <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
-    <br>
     <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
-    <br>
-    <a class="p-category" href={{ "notes/" | absURL }}>notes</a>
   </div>
   <p class="notes__title">
-    <a data-goatcounter-click="cl-note-full" href={{ .Permalink }}>
+    <a data-goatcounter-click="cl-note-full" class="u-url" href={{ .Permalink }}>
       <span>
         <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7" class="notes__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">
           {{ .Date.Format "02 Jan 2006" }}
@@ -23,7 +18,7 @@
       </span>
     </a>
   </p>
-  <div class="notes__content e-content p-content p-name">
+  <div class="notes__content e-content p-name">
     {{ .Content }}
   </div>
 </div>
diff --git a/layouts/partials/post/responses-item.html b/layouts/partials/post/responses-item.html
@@ -6,22 +6,16 @@
 {{ end }}
 {{ $title := print "In response to " "«" .Params.Destination.Title "»" $author }}
 <div class="content responses h-entry" id={{ $idslug }}>
-  <div id="h-card" class="hcard" hidden="">
-    <img class="u-photo" src={{ "logo.png" | absURL }} />
+  <div id="h-card" class="h-card u-author" hidden="">
+    <data class="u-photo" value={{ "logo.png" | absURL }}></data>
     <a class="p-name" href={{ .Permalink }}>{{ $title }}</a>
-    <br>
-    <a class="p-author h-card" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
-    <br>
+    <a class="p-author" href={{ .Site.Params.MainSiteURL }} rel="author">{{ substr .Site.Params.Author 0 20 }}.</a>
     <a class="u-email" href="mailto:{{ .Site.Params.Email }}">{{ .Site.Params.Email }}</a>
-    <br>
     <a rel="syndication" class="u-syndication" href={{ .Permalink }}>{{ .Title }}</a>
-    <br>
     <span class="p-locality">Jakarta</span>, <span class="p-country-name">Indonesia</span>
-    <br>
-    <a class="p-category" href={{ "responses/" | absURL }}>responses</a>
   </div>
   <p class="responses__title">
-    <a data-goatcounter-click="cl-response-full" href={{ .Permalink }}>
+    <a data-goatcounter-click="cl-response-full" class="u-url" href={{ .Permalink }}>
       <span>
         <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7" class="responses__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">
           {{ .Date.Format "02 Jan 2006" }}
@@ -32,7 +26,7 @@
   </p>
   <div class="responses__content">
     <p class="responses__original"><a class="u-in-reply-to" href={{ .Params.Destination.Url }}>{{ $title }}</a></p>
-    <div class="e-content p-content">
+    <div class="e-content">
       {{ if eq ($.Scratch.Get "scope") "single" }}
         {{ partial "components/content.html" .Content }}
       {{ else }}