Bladeren bron

Sections anchors added (#30)

- Added anchors to sub-sections, to change coursor to hand
- To-Do - open this section(anchor) on link shared(openned)
Yuriy 4 jaren geleden
bovenliggende
commit
f03e94e5d4
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      layouts/partials/sections.html

+ 2 - 2
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 }}