diff options
| author | Track3 <pengliabc@live.cn> | 2019-03-24 11:45:41 +0800 |
|---|---|---|
| committer | Track3 <pengliabc@live.cn> | 2019-03-24 11:45:41 +0800 |
| commit | 028dc62e3b02a636e47f8c2b8484b3926f1a9cfb (patch) | |
| tree | 47b5d55399a4003e5ecd866f627978be1665b4c5 /layouts | |
| parent | e6177e0fde4f3e3413c1c237c0ff9a8f55398687 (diff) | |
Add anchor points to post list page
* post-year now has anchor point, you can click on it or input url with hash tag to jump to a specific year.
* See #39
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 198911d..dc525d6 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -12,7 +12,7 @@ {{- end }} {{- range .Data.Pages.GroupByDate "2006" }} <div class="posts-group"> - <div class="post-year">{{ .Key }}</div> + <div class="post-year" id="{{ .Key }}">{{ .Key }}</div> <ul class="posts-list"> {{- range .Pages }} <li class="post-item"> |
