first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{{/*
|
||||
Anchor id for a section: its own `id`, else one made from its `toc`,
|
||||
`kicker`, or `headline`. Used by the section wrapper and by the pricing
|
||||
switch.
|
||||
*/}}
|
||||
{{ $id := "" }}
|
||||
{{ with .id }}
|
||||
{{ $id = . }}
|
||||
{{ else }}
|
||||
{{ with (or .toc .kicker .headline) }}{{ $id = . | plainify | anchorize }}{{ end }}
|
||||
{{ end }}
|
||||
{{ return $id }}
|
||||
Reference in New Issue
Block a user