Fix duplicate H1 and nav title
All checks were successful
ci / build (push) Successful in 1m2s

This commit is contained in:
Tom Sakretz 2026-02-04 10:40:03 +01:00
parent 9053800379
commit 4affeae616
2 changed files with 7 additions and 4 deletions

View file

@ -1,12 +1,10 @@
---
title: "Autonomous UAT Agent"
linkTitle: "autonomous-uat-agent"
linkTitle: "Autonomous UAT Agent"
weight: 10
description: >
General documentation for D66 and the Autonomous UAT Agent
---
# General Documentation (D66)
This section contains the core documentation for D66, focusing on how the Autonomous UAT Agent works and how to run it.

View file

@ -1,7 +1,12 @@
{{ define "main" }}
{{ partial "legacy-banner.html" . }}
<div class="td-content">
<h1>{{ .Title }}</h1>
{{- $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 -}}
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}