commit 974d019e8eec46e70bf3f69680759a7150de3c8c parent dfe815f9d256d4c8170a2d5899a89b78e79b7799 Author: Yohanes Bandung <bandungpenting@gmail.com> Date: Fri, 1 May 2020 20:28:18 +0700 content: added description and improved notes stylings Diffstat:
| M | assets/content.scss | | | 12 | +++++++++++- |
| M | content/posts/NuPhy NuType F1 Keyboard Review.md | | | 1 | + |
| M | content/posts/Why I Positioned Sidebar to the Right.md | | | 1 | + |
| M | layouts/index.html | | | 13 | +++++++------ |
4 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/assets/content.scss b/assets/content.scss @@ -5,17 +5,27 @@ @return map-get($theme-map, $key); } -.content { +.content, .notes { font-family: $font-text; width: 100%; pre { overflow: auto; padding: 0.5em; } + a { + &:hover { + @include themify($themes) { + background-color: themed('color-background-hover'); + } + } + } code { padding: 0.1em; font-family: $font-mono; font-size: 0.9em; + @include themify($themes) { + background-color: themed('color-background-hover'); + } } table { display: block; diff --git a/content/posts/NuPhy NuType F1 Keyboard Review.md b/content/posts/NuPhy NuType F1 Keyboard Review.md @@ -3,6 +3,7 @@ title: NuPhy NuType F1 Keyboard Review author: Yohanes Bandung Bondowoso tags: - Review #review +description: I backed a project for mechanical keyboard on Kickstarter early 2020. Last week, it arrived to my home. date: 2020-04-05T18:23:12 --- diff --git a/content/posts/Why I Positioned Sidebar to the Right.md b/content/posts/Why I Positioned Sidebar to the Right.md @@ -2,6 +2,7 @@ title: Why I Positioned Sidebar to the Right author: Yohanes Bandung Bondowoso date: 2020-04-27T04:57:12 +description: My past employer mentioned me on twitter. He tweeted about how I positioned the sidebar of my text editor to the right. tags: - Web Development #web_development --- diff --git a/layouts/index.html b/layouts/index.html @@ -1,4 +1,6 @@ {{ define "main" }} + {{ $postURL := "/posts" | absURL }} + {{ $notesURL := "/notes" | absURL }} <article> {{ .Content }} @@ -6,9 +8,9 @@ <hr> - <h2>Blog Posts:</h2> - <div class="listing"> - {{ range first 5 (where .Site.RegularPages "Type" "posts") }} + <a href={{ $postURL }}><h2>Blog Posts:</h2></a> + <div href={{ $postURL }} class="listing"> + {{ range first 5 (where .Site.RegularPages "Section" "posts") }} <a href={{ .Permalink }} class="button full-width listing__post"> <h3 class="listing__post__title"> {{ .Title }} @@ -19,21 +21,20 @@ {{ with .Description }} <p class="link-white listing__post__description">{{ . }}</p> {{ end }} + <p class="listing__post__description">Read More »</p> </a> {{ end }} - {{ $postURL := "/posts" | absURL }} </div> <p class="main__more"><a href={{ $postURL }} class="button">More Blogs ⤳</a></p> <hr> - <h2>Notes:</h2> + <a href={{ $notesURL }}><h2>Notes:</h2></a> <div class="listing"> {{ range first 5 (where .Site.RegularPages "Type" "notes") }} {{ partial "post/notes-item.html" . }} {{ end }} </div> - {{ $notesURL := "/notes" | absURL }} <p class="main__more"><a href={{ $notesURL }} class="button">More Notes ⤳</a></p>