File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ {{ $class := .Attributes.class }}
12{{ $text := chomp .Text }}
23{{ if site.Params.main.titleCase }}{{ $text = title $text }}{{ end }}
34
67{{ end }}
78
89{{ if and site.Params.navigation.anchor $text }}
9- < h {{ .Level }} id ="{{ .Anchor | safeURL }} " class ="heading ">
10+ < h {{ .Level }} id ="{{ .Anchor | safeURL }} " class ="heading {{ with $class }}{{.}}{{end}} ">
1011 {{- $text | safeHTML -}}
1112 < a href ="#{{ .Anchor | safeURL }} " aria-labelledby ="{{ .Anchor | safeURL }} ">
1213 {{- partial "assets/icon.html" (dict "icon" "fas link anchor") }}
1314 </ a >
1415</ h {{ .Level }}>
1516{{ else }}
16- < h {{ .Level }} id ="{{ .Anchor | safeURL }} "> {{ $text | safeHTML }}</ h {{ .Level }}>
17+ < h {{ .Level }} id ="{{ .Anchor | safeURL }} " {{ with $class }} class =" {{.}} " {{end }} > {{ $text | safeHTML }}</ h {{ .Level }}>
1718{{ end }}
Original file line number Diff line number Diff line change 1+ {{ $class := .Attributes.class }}
12{{ $text := chomp .Text }}
23{{ if site.Params.main.titleCase }}{{ $text = (title ($text | htmlUnescape)) | htmlEscape }}{{ end }}
34
45{{ if and site.Params.navigation.anchor $text }}
5- < h {{ .Level }} id ="{{ .Anchor | safeURL }} " class ="heading ">
6+ < h {{ .Level }} id ="{{ .Anchor | safeURL }} " class ="heading {{ with $class }}{{.}}{{end}} ">
67 {{- $text | safeHTML -}}
78 < a href ="#{{ .Anchor | safeURL }} " aria-labelledby ="{{ .Anchor | safeURL }} ">
89 {{- partial "assets/icon.html" (dict "icon" "fas link anchor") }}
910 </ a >
1011</ h {{ .Level }}>
1112{{ else }}
12- < h {{ .Level }} id ="{{ .Anchor | safeURL }} "> {{ $text | safeHTML }}</ h {{ .Level }}>
13+ < h {{ .Level }} id ="{{ .Anchor | safeURL }} " {{ with $class }} class =" {{.}} " {{end }} > {{ $text | safeHTML }}</ h {{ .Level }}>
1314{{ end }}
You can’t perform that action at this time.
0 commit comments