Welcome to mirror list, hosted at ThFree Co, Russian Federation.

get-section-id.html « helpers « partials « layouts - github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2dc13abf2ed30570e7a960673a5a371f00a59131 (plain)
1
2
3
4
5
{{ $sectionID := replace (lower .section.name) " " "-"  }}
{{ if .section.id }}
    {{ $sectionID = .section.id }}
{{ end }}
{{ return $sectionID }}