commit 3e0d7336e494b21a7b01b855935afef9ce26614c parent 3c80dc1ae9ac65730140ffb1e6386c3913375b6c Author: Yohanes Bandung <bandungpenting@gmail.com> Date: Tue, 28 Apr 2020 16:02:15 +0700 refactor: enhance note listings Diffstat:
| M | content/notes/01 April 2020 - 2.md | | | 2 | -- |
| M | content/notes/01 April 2020.md | | | 2 | -- |
| M | content/notes/08 April 2020.md | | | 2 | -- |
| M | content/notes/09 April 2020.md | | | 2 | -- |
| M | content/notes/15 April 2020.md | | | 2 | -- |
| M | content/notes/16 April 2020 - 2.md | | | 2 | -- |
| M | content/notes/16 April 2020.md | | | 2 | -- |
| M | content/notes/17 April 2020.md | | | 2 | -- |
| M | content/notes/26 March 2020.md | | | 2 | -- |
| M | content/notes/27 March 2020.md | | | 2 | -- |
| M | content/notes/31 March 2020.md | | | 2 | -- |
| M | layouts/_default/list.html | | | 11 | ++++++++++- |
| M | layouts/index.html | | | 14 | ++++++++++++-- |
13 files changed, 22 insertions(+), 25 deletions(-)
diff --git a/content/notes/01 April 2020 - 2.md b/content/notes/01 April 2020 - 2.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 01 April 2020 (2) - Bought iA Writer - This app is limiting in some ways, but nice to have. Main feature is robust, save for iPadOS keyboard shortcut. \ No newline at end of file diff --git a/content/notes/01 April 2020.md b/content/notes/01 April 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 01 April 2020 - Idea - It'd be nice if there is iOS & iPadOS app to override external keyboard input to emulate Vim keybindings. \ No newline at end of file diff --git a/content/notes/08 April 2020.md b/content/notes/08 April 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 08 April 2020 - Mac Shortcut - `F11` and `CMD+<Assigned Function on top of F3 key>` can be used to show desktop on Mac. Useful if using external keyboard and mouse. \ No newline at end of file diff --git a/content/notes/09 April 2020.md b/content/notes/09 April 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 09 April 2020 - iA Writer's _Syntax Highlighting_ turns out slowing my writings and makes them not genuine. Turning it off up until I needed to edit the text. \ No newline at end of file diff --git a/content/notes/15 April 2020.md b/content/notes/15 April 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 15 April 2020 - Is telling friend to use shortcut instead of mouse while peer programming considered **Micromanaging**? \ No newline at end of file diff --git a/content/notes/16 April 2020 - 2.md b/content/notes/16 April 2020 - 2.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 16 April 2020 - Springcleaned My Gmail - Took a while. I used Gmail's web interface, no fancy desktop mail app. \ No newline at end of file diff --git a/content/notes/16 April 2020.md b/content/notes/16 April 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 16 April 2020 - Timestripe - I found this beautiful and maybe useful webpage: [Timestripe](https://timestripe.com/). \ No newline at end of file diff --git a/content/notes/17 April 2020.md b/content/notes/17 April 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 17 April 2020 - GoodNotes 5 is now Universal Purchase! - Fortunate me, not directly purchase on both platform and just fetch the iOS version instead. The mac app is cool and light. \ No newline at end of file diff --git a/content/notes/26 March 2020.md b/content/notes/26 March 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 26 March 2020 - New Keyboard - Got my new NuPhy NuType F1 that I've been waiting warily from KickStarter! \ No newline at end of file diff --git a/content/notes/27 March 2020.md b/content/notes/27 March 2020.md @@ -5,6 +5,4 @@ tags: - Notes #notes --- -#### 27 March 2020 - Subscribed to Bear - Tried **Ulysses** and **Bear**, in the end I choose Bear. I like the Headings representation of Ulysses, though. \ No newline at end of file diff --git a/content/notes/31 March 2020.md b/content/notes/31 March 2020.md @@ -5,7 +5,5 @@ tags: - Notes #notes --- -#### 31 March 2020 - iOS Shortcuts - I made this file, and the block content on the main RSS file with **iOS Shortcut**. Multiple actions to open _x-callback-url_ is difficult. \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -8,7 +8,16 @@ {{ if eq .Type "notes" }} {{ range (where .Site.RegularPages "Type" "notes") }} - <p>{{ .Content }}</p> + {{ $dateformat := .Date.Format "2006-01-02" }} + {{ $idslug := (print $dateformat "-" .Title) | urlize }} + <h4 id={{ $idslug }}> + <time>{{ .Date.Format "02 Jan 2006" }}</time> + {{ with .Title}} + - {{ . }} + {{ end }} + <a href="#{{ $idslug }}">#</a> + </h4> + <p>{{ .Content }}</p> {{ end }} {{ else }} {{ range .Paginator.Pages }} diff --git a/layouts/index.html b/layouts/index.html @@ -5,11 +5,12 @@ <hr> - <h2>Blog</h2> + <h2>Blog Posts:</h2> {{ range first 5 (where .Site.RegularPages "Type" "posts") }} <p> <a href={{ .Permalink }} class="button full-width"> - <time>{{ .Date.Format "02 Jan 2006" }}</time> - + <time>{{ .Date.Format "02 Jan 2006" }}</time> + <br> <span class="link-white">{{ .Title }}</span> ยป </a> </p> @@ -21,6 +22,15 @@ <h2>Notes:</h2> {{ range first 5 (where .Site.RegularPages "Type" "notes") }} + {{ $dateformat := .Date.Format "2006-01-02" }} + {{ $idslug := (print $dateformat "-" .Title) | urlize }} + <h4 id={{ $idslug }}> + <time>{{ .Date.Format "02 Jan 2006" }}</time> + {{ with .Title}} + - {{ . }} + {{ end }} + <a href="/notes/#{{ $idslug }}">#</a> + </h4> <p>{{ .Content }}</p> {{ end }} {{ $notesURL := "/notes" | absURL }}