2025-10-23 14:54:08 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
|
{{ partial "legacy-banner.html" . }}
|
|
|
|
|
<div class="td-content">
|
2026-02-04 10:40:03 +01:00
|
|
|
{{- $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 -}}
|
2025-10-23 14:54:08 +02:00
|
|
|
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
|
|
|
|
|
{{ .Content }}
|
|
|
|
|
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
|
|
|
|
|
{{ partial "feedback.html" .Site.Params.ui.feedback }}
|
|
|
|
|
<br />
|
|
|
|
|
{{ end }}
|
2025-10-23 15:21:02 +02:00
|
|
|
{{ if (.Site.Config.Services.Disqus.Shortname) }}
|
2025-10-23 14:54:08 +02:00
|
|
|
<br />
|
|
|
|
|
{{ partial "disqus-comment.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
<div class="text-muted mt-5 pt-3 border-top">{{ partial "page-meta-lastmod.html" . }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|