Skip to content

Commit

Permalink
Merge pull request #105 from shizhMSFT/fix_anchor_link
Browse files Browse the repository at this point in the history
fix: generate proper anchor link for toc
  • Loading branch information
tianon authored Jun 27, 2024
2 parents 246c266 + 7d51fec commit 2f39348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions products-page-generator/index.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ __Table of Contents:__
{{- with .Submissions -}}
{{- range $key, $value := . }}
{{- if .IsOSS }}
- [{{ $value.Meta.Name }}](#{{ $key }})
- [{{ $value.Meta.Name }}](#{{ lower $value.Meta.Name | replace " " "-" }})
{{- end -}}
{{- end -}}
{{ end }}
- [Hosted](#hosted)
{{- with .Submissions -}}
{{- range $key, $value := . }}
{{- if not .IsOSS }}
- [{{ $value.Meta.Name }}](#{{ $key }})
- [{{ $value.Meta.Name }}](#{{ lower $value.Meta.Name | replace " " "-" }})
{{- end }}
{{- end }}
{{ end -}}
Expand Down

0 comments on commit 2f39348

Please sign in to comment.