commit 514f73995908ab1849053e94576284b4758e200e parent 34799dff4e6a88f139b9236cd8141d018640a9e1 Author: Yohanes Bandung <bandungpenting@gmail.com> Date: Fri, 1 May 2020 22:50:02 +0700 refactor: summary enhancements Diffstat:
| M | assets/content.scss | | | 4 | +++- |
| M | assets/styles.scss | | | 22 | +++++++++++++++++----- |
| M | content/posts/April Links.md | | | 4 | ++-- |
| M | content/posts/February Links.md | | | 4 | ++-- |
| M | content/posts/March Links.md | | | 4 | ++-- |
| M | layouts/partials/post/summary.html | | | 14 | +++++--------- |
6 files changed, 31 insertions(+), 21 deletions(-)
diff --git a/assets/content.scss b/assets/content.scss @@ -85,7 +85,9 @@ margin: 0; } @media (min-width: 600px) { - padding: 0 0.7em; + .listing > & { + padding: 0 0.7em; + } } margin-bottom: 2em; @media (max-width: 599px) { diff --git a/assets/styles.scss b/assets/styles.scss @@ -33,16 +33,16 @@ hr { padding: 0 10px; margin: 0; } - hr { - width: 90%; - } } h1, h2, h3, h4, h5, h6 { @include themify($themes) { color: themed('color-green'); } - font-family: $font-mono; + font-family: $font-text; + a { + font-family: $font-mono; + } } h1 { @@ -74,9 +74,11 @@ a { padding: 0.3em 0.7em; } &.full-width { - width: calc(100% - 1.4em); margin: 0; align-self: center; + @media (min-width: 600px) { + width: calc(100% - 1.4em); + } } } @@ -180,6 +182,16 @@ time { } } +.summary { + margin: 0 0 5.5em 0; + p { + margin: 0em 0 0.4em; + } + &__title { + margin-bottom: 0; + } +} + .pagination { border-top: dashed 2px; border-bottom: dashed 2px; 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/post/summary.html b/layouts/partials/post/summary.html @@ -18,16 +18,12 @@ {{ $hell := .Type }} {{ if .Params.Description }} <p> {{ .Params.Description }} </p> - {{ else }} + <a href="{{ .Permalink }}"> + <p>Read More ยป</p> + </a> + {{ else }} <p> - {{ .Summary }} - {{ if .Truncated }} - <p> - <a href="{{ .Permalink }}"> - Read more โคณ - </a> - </p> - {{ end }} + {{ .Content }} </p> {{ end }} </article>