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:
@@ -1,11 +1,11 @@
|
|||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ if .Sections }}
|
{{ if .Sections }}
|
||||||
<li><a data-filter="{{ .Params.id }}">{{ title .Title }}</a>
|
<li><a href="#{{ .Params.id }}" data-filter="{{ .Params.id }}">{{ title .Title }}</a>
|
||||||
<ul>
|
<ul>
|
||||||
{{ partial "sections.html" .Sections }}
|
{{ partial "sections.html" .Sections }}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ 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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user