ybbond

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

commit 31233c77f203c5781e4d0fb08e2aa3d95c09147d
parent 4b467bcddae039c04dd9b9adadb95d1044d6e45e
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Mon,  4 May 2020 16:00:38 +0700

feature: add time mouseover tooltip

Diffstat:
Massets/styles.scss | 3+++
Mlayouts/_default/single.html | 2+-
Mlayouts/partials/post/notes-item.html | 2+-
Mlayouts/partials/post/summary.html | 2+-

4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/assets/styles.scss b/assets/styles.scss
@@ -103,6 +103,9 @@ time {
     color: themed('color-red');
   }
   font-family: $font-mono;
+  &[title] {
+    cursor: help;
+  }
 }
 
 .listing {
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -27,7 +27,7 @@
       </div>
       <br>
       <br>
-      <p {{ if eq .Type "page" }}class="hcard"{{ end }}><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>
+      <p {{ if eq .Type "page" }}class="hcard"{{ end }}><a class="u-url link-white" href={{ .Permalink }}>Published</a> on <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7" 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 }}
         <p class="taglist">
           {{ range . }}
diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html
@@ -15,7 +15,7 @@
   </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">
+      <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" }}
       </time>
         {{ if .Title }}
diff --git a/layouts/partials/post/summary.html b/layouts/partials/post/summary.html
@@ -1,6 +1,6 @@
 <article class="summary">
   <a href="{{ .Permalink }}"><h2 class="summary__title">{{ .Title }}</h2></a>
-  <time>{{ .Date.Format "02 Jan 2006" }}</time>
+  <time title="{{ .Date.Format "Monday, 02 January 2006 on 15:04:05" }} GMT+7">{{ .Date.Format "02 Jan 2006" }}</time>
   <span> - </span>
   {{ range .Params.tags }}
     {{- partial "components/tagitem.html" . -}}