Revert "Fix duplicate H1 and nav title"
This reverts commit 4affeae616.
This commit is contained in:
parent
4affeae616
commit
5e4ef8df05
2 changed files with 4 additions and 7 deletions
|
|
@ -1,12 +1,7 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "legacy-banner.html" . }}
|
||||
<div class="td-content">
|
||||
{{- $raw := strings.TrimLeft " \t\r\n" .RawContent -}}
|
||||
{{- $hasTopMarkdownH1 := gt (len (findRE "^#\\s+" $raw 1)) 0 -}}
|
||||
{{- $hasTopHtmlH1 := gt (len (findRE "^<h1\\b" $raw 1)) 0 -}}
|
||||
{{- if not (or $hasTopMarkdownH1 $hasTopHtmlH1) -}}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{- end -}}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
||||
{{ .Content }}
|
||||
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue