Sections anchors added (#30)

- Added anchors to sub-sections, to change coursor to hand
- To-Do - open this section(anchor) on link shared(openned)
This commit is contained in:
Yuriy 2020-07-06 18:11:04 +02:00 committed by GitHub
parent 26ef9aa351
commit f03e94e5d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }}