Browse Source

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

pull/149/head
Josh Habdas 1 year ago
parent
commit
ebbc26b3f8
Signed by: jhabdas GPG Key ID: B148B31154C75A74
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      docs/layouts/feature/single.html
  2. +1
    -0
      docs/layouts/partials/feature/category-link.html

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

@ -17,9 +17,9 @@
<footer>
<hr>
<p>
Published
{{ .Section | title }}
{{ with .Params.categories }}
in {{ delimit (apply (apply (sort .) "partial" "category-link.html" ".") "chomp" ".") ", " " and " }}
in {{ delimit (apply (apply (sort .) "partial" "feature/category-link.html" ".") "chomp" ".") ", " " and " }}
{{ end }}
{{ with .Params.features }}
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 @@
<a href="{{ "/feature" | relURL }}/#{{ . | urlize }}">{{ . | title }}</a>

Loading…
Cancel
Save