add read time indicator

This commit is contained in:
Robert Kaussow 2020-08-25 23:57:08 +02:00
parent 6f107e2bcd
commit 206fe0cef9
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
4 changed files with 13 additions and 1 deletions

View File

@ -2,3 +2,5 @@
- slightly change the date formate displayed on posts - slightly change the date formate displayed on posts
- use `.Lastmod` instead of `.Date` on posts - use `.Lastmod` instead of `.Date` on posts
the date on updated posts will be prefixed with `Updated on` string the date on updated posts will be prefixed with `Updated on` string
modifications from the same day are ignored
- add read time indicator

View File

@ -33,6 +33,11 @@
</span> </span>
</span> </span>
<span class="no-wrap">
<svg class="icon timer"><use xlink:href="#timer"></use></svg>
<span class="gblog-post__tag">{{ .ReadingTime }} min</span>
</span>
{{ if .Params.weight }} {{ if .Params.weight }}
<span class="no-wrap"> <span class="no-wrap">
<svg class="icon pin"><use xlink:href="#pin"></use></svg> <svg class="icon pin"><use xlink:href="#pin"></use></svg>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB

5
src/icons/timer.svg Normal file
View File

@ -0,0 +1,5 @@
<!-- Generated by IcoMoon.io -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
<title>timer</title>
<path d="M16 29q4.428 0 7.536-3.143t3.107-7.571-3.107-7.536-7.536-3.107-7.536 3.107-3.107 7.536 3.107 7.571 7.536 3.143zM26.714 9.786q1.214 1.571 2.107 4.036t0.893 4.464q0 5.643-4 9.678t-9.714 4.036-9.714-4.036-4-9.678 4-9.678 9.714-4.036q1.929 0 4.464 0.929t4.107 2.143l2.143-2.214q1.143 0.929 2.143 2.143zM14.5 19.857v-9.143h3v9.143h-3zM20.571 0.001v3.071h-9.143v-3.071h9.143z"></path>
</svg>

After

Width:  |  Height:  |  Size: 547 B