mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-21 20:50:40 +00:00
add read time indicator
This commit is contained in:
parent
6f107e2bcd
commit
206fe0cef9
@ -2,3 +2,5 @@
|
||||
- slightly change the date formate displayed on posts
|
||||
- use `.Lastmod` instead of `.Date` on posts
|
||||
the date on updated posts will be prefixed with `Updated on` string
|
||||
modifications from the same day are ignored
|
||||
- add read time indicator
|
||||
|
@ -33,6 +33,11 @@
|
||||
</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 }}
|
||||
<span class="no-wrap">
|
||||
<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
5
src/icons/timer.svg
Normal 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 |
Loading…
Reference in New Issue
Block a user