ybbond

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

commit f8c59df889c13dcfc058d906cec1c572d0f2f51f
parent e73a5b1827cd324a7866957f29afae62fcb6dc45
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Fri,  8 May 2020 00:03:50 +0700

refactor: SEO make summaries use h3 instead of h2

Diffstat:
Mcontent/posts/April Links.md | 4++--
Mcontent/posts/February Links.md | 4++--
Mcontent/posts/March Links.md | 4++--
Alayouts/partials/components/summary-seo.html | 1+
Mlayouts/partials/post/summary.html | 4+---

5 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/content/posts/April Links.md b/content/posts/April Links.md
@@ -11,13 +11,13 @@ An interesting [posts](https://yihui.org/en/2018/02/career-crisis/) by Yihui Xie
 
 ๐Ÿ’ [Corrupt a file - Corrupt file online, deliver on time!](https://corrupt-a-file.net/)
 
-### Tech
+## Tech
 
 ๐Ÿ‘  [vime/README.md at master ยท vime-js/vime ยท GitHub](https://github.com/vime-js/vime/blob/master/README.md)
 
 ๐Ÿ›‚ [Password Strengh - xkcd #936](https://xkcd.com/936/)
 
-### Blog
+## Blog
 
 ๐Ÿ“ฐ [Ask HackerNews: What is your blog](https://news.ycombinator.com/item?id=22800136)
 
diff --git a/content/posts/February Links.md b/content/posts/February Links.md
@@ -7,11 +7,11 @@ date: 2020-03-01T00:00:01
 type: links
 ---
 
-### Tech
+## Tech
 
 ๐Ÿ—ฃ [No, disabling a button is not app logic. - David K. ๐ŸŽน](https://dev.to/davidkpiano/no-disabling-a-button-is-not-app-logic-598i)
 
-### Knowledge
+## Knowledge
 
 ๐Ÿ‘ƒ [From Bats to Human Lungs, the Evolution of a Coronavirus - Carolyn Kormann](https://www.newyorker.com/science/elements/from-bats-to-human-lungs-the-evolution-of-a-coronavirus)
 
diff --git a/content/posts/March Links.md b/content/posts/March Links.md
@@ -7,7 +7,7 @@ date: 2020-04-01T00:00:01
 type: links
 ---
 
-### Tech
+## Tech
 
 ๐Ÿ““ [A Type of Programming WIP Book about Haskell](https://atypeofprogramming.com/)
 
@@ -15,7 +15,7 @@ type: links
 
 ๐Ÿ†… [iVim setup](https://www.reddit.com/r/vim/comments/9ki5g8/ivim_ios_howtos/)
 
-### Knowledge
+## Knowledge
 
 ๐Ÿ—ฃ [Using Parts of Speech to Improve Your Writing Style - William Strunk Jr.](https://ia.net/writer/support/writing-tips/parts-of-speech)
 
diff --git a/layouts/partials/components/summary-seo.html b/layouts/partials/components/summary-seo.html
@@ -0,0 +1 @@
+{{ . | replaceRE "<h3" "<h4" | replaceRE "</h3" "</h4" | replaceRE "<h2" "<h3" | replaceRE "</h2" "</h3" | safeHTML }}
diff --git a/layouts/partials/post/summary.html b/layouts/partials/post/summary.html
@@ -22,8 +22,6 @@
       <p>Read More ยป</p>
     </a>
   {{ else }}
-    <p>
-      {{ .Content }}
-    </p>
+    {{ partial "components/summary-seo.html" .Content }}
   {{ end }}
 </article>