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:
| M | content/posts/April Links.md | | | 4 | ++-- |
| M | content/posts/February Links.md | | | 4 | ++-- |
| M | content/posts/March Links.md | | | 4 | ++-- |
| A | layouts/partials/components/summary-seo.html | | | 1 | + |
| M | layouts/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>