Browse Source

docs(help/features): deep link to category list items in features section list

Josh Habdas 9 months ago
parent
commit
ebbc26b3f8
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74

+ 2
- 2
docs/layouts/feature/single.html View File

@@ -17,9 +17,9 @@
17 17
   <footer>
18 18
     <hr>
19 19
     <p>
20
-      Published
20
+      {{ .Section | title }}
21 21
       {{ with .Params.categories }}
22
-        in {{ delimit (apply (apply (sort .) "partial" "category-link.html" ".") "chomp" ".") ", " " and " }}
22
+        in {{ delimit (apply (apply (sort .) "partial" "feature/category-link.html" ".") "chomp" ".") ", " " and " }}
23 23
       {{ end }}
24 24
       {{ with .Params.features }}
25 25
         using {{ delimit (apply (apply (sort .) "partial" "feature-link.html" ".") "chomp" ".") ", " " and " }}.

+ 1
- 0
docs/layouts/partials/feature/category-link.html View File

@@ -0,0 +1 @@
1
+<a href="{{ "/feature" | relURL }}/#{{ . | urlize }}">{{ . | title }}</a>

Loading…
Cancel
Save