diff options
author | Yuriy <yuramazh@gmail.com> | 2020-07-06 19:11:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 19:11:04 +0300 |
commit | f03e94e5d465630fed610447fc2327fec31c74e1 (patch) | |
tree | 1996a7c14dc859bb70e300d9463a73b6d3ac6a0a /layouts | |
parent | 26ef9aa35129c8e03b3625640c5007461daf81ea (diff) |
Sections anchors added (#30)
- Added anchors to sub-sections, to change coursor to hand
- To-Do - open this section(anchor) on link shared(openned)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/sections.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/sections.html b/layouts/partials/sections.html index d847fb5..09c9ab8 100644 --- a/layouts/partials/sections.html +++ b/layouts/partials/sections.html @@ -1,11 +1,11 @@ {{ range . }} {{ if .Sections }} - <li><a data-filter="{{ .Params.id }}">{{ title .Title }}</a> + <li><a href="#{{ .Params.id }}" data-filter="{{ .Params.id }}">{{ title .Title }}</a> <ul> {{ partial "sections.html" .Sections }} </ul> </li> {{ else }} - <li><a data-filter="{{ .Params.id }}">{{ title .Title }}</a></li> + <li><a href="#{{ .Params.id }}" data-filter="{{ .Params.id }}">{{ title .Title }}</a></li> {{ end }} {{ end }} |