ybbond

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

commit 4f31a93767fc39938e969b759a856e93b80c6a58
parent 076731f596b27331236f2ce3ca9d5d79eba0d2cf
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Mon,  4 May 2020 01:24:55 +0700

feature: h-entry for notes

Diffstat:
Massets/content.scss | 10+++++++++-
Massets/styles.scss | 2+-
Mlayouts/_default/single.html | 1+
Mlayouts/partials/footer/footer.html | 8++++----
Mlayouts/partials/post/notes-item.html | 13++++++++-----

5 files changed, 23 insertions(+), 11 deletions(-)

diff --git a/assets/content.scss b/assets/content.scss
@@ -9,6 +9,10 @@
   font-family: $font-text;
   width: 100%;
 
+  .p-author {
+    display: none;
+  }
+
   pre {
     overflow: auto;
     padding: 0.5em;
@@ -100,9 +104,13 @@
   }
 }
 .notes {
-  & > p {
+  & > div, & > p {
     margin: 0;
     margin-top: 0.7em;
+    & > p {
+      margin: 0;
+      margin-top: 0.7em;
+    }
   }
   &__title {
     margin: 0;
diff --git a/assets/styles.scss b/assets/styles.scss
@@ -63,7 +63,7 @@ a {
     &:hover {
       color: themed('color-red');
     }
-    &.link-white {
+    &.link-white, .link-white {
       color: themed('color-text');
     }
   }
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -1,6 +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>
     <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
@@ -8,11 +8,11 @@
     {{ end }}
   </p>
   <p class="footer__nav__right">
-		<a class="button" href="https://github.com/{{ .Site.Params.Github }}" rel="me">GitHub</a>
-		<a class="button" href="https://twitter.com/{{ .Site.Params.Twitter }}" rel="me">Twitter</a>
+    <a class="button" href="https://github.com/{{ .Site.Params.Github }}" rel="me">GitHub</a>
+    <a class="button" href="https://twitter.com/{{ .Site.Params.Twitter }}" rel="me">Twitter</a>
     <a class="button" href="https://micro.blog/{{ .Site.Params.Microblog }}" rel="me">Micro.blog</a>
     <a class="button" href="https://indieweb.social/@ybbond" rel="me">Mastodon</a>
-		<a class="button" href={{ "index.xml" | absURL }}>RSS</a>
+    <a class="button" href={{ "index.xml" | absURL }}>RSS</a>
   </p>
 </div>
 
@@ -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 p-author" href={{ .Site.Params.MainSiteURL }} rel="me">{{ substr .Site.Params.Author 0 20 }}.</a>
+  <a class="p-name u-url u-uid" 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>
diff --git a/layouts/partials/post/notes-item.html b/layouts/partials/post/notes-item.html
@@ -1,22 +1,25 @@
 {{ $dateformat := .Date.Format "2006-01-02 15:04" }}
 {{ $idslug := (print "date-" $dateformat "-") | urlize }}
-<div class="notes">
+<div class="notes h-entry">
+  <p class="p-author" rel="author">{{ .Site.Params.Author }}</p>
   <p class="notes__title" id={{ $idslug }}>
     <span>
-      <time class="notes__title__date">
+      <time class="notes__title__date dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}+07:00">
         {{ .Date.Format "02 Jan 2006" }}
       </time>
         {{ if .Title }}
         {{ else }}
-          <a href="/notes/#{{ $idslug }}">#</a></span>
+          <a class="u-url" href="/notes/#{{ $idslug }}">#</a></span>
         {{ end }}
     </span>
     {{ with .Title}}
       <span class="notes__title__separator"> - </span>
     {{ end }}
     {{ with .Title}}
-      <span class="notes__title__title">{{ . }} <a href="#{{ $idslug }}">#</a></span>
+      <span class="notes__title__title">{{ . }} <a class="u-url" href="#{{ $idslug }}">#</a></span>
     {{ end }}
   </p>
-  {{ .Content }}
+  <div class="e-content p-name">
+    {{ .Content }}
+  </div>
 </div> 
\ No newline at end of file