Merge pull request #18627 from dvdksn/main

search: add a stronger main content identifier
This commit is contained in:
David Karlsson 2023-11-10 14:23:35 +01:00 committed by GitHub
commit d42423cef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@
{{ .Scratch.Set "headings" slice }}
{{ .Scratch.Set "subheadings" slice }}
{{ partial "breadcrumbs.html" . }}
<article class="prose max-w-none dark:prose-invert">
<article id="content" class="prose max-w-none dark:prose-invert">
<h1>{{ .Title }}</h1>
{{ $data.short | .RenderString (dict "display" "block") }}
{{ if $data.deprecated }}

View File

@ -4,7 +4,7 @@
{{ define "main" }}
{{ partial "breadcrumbs.html" . }}
<article class="prose max-w-none dark:prose-invert">
<article id="content" class="prose max-w-none dark:prose-invert">
<h1>{{ .Title }}</h1>
<table>
<thead>

View File

@ -4,7 +4,7 @@
{{ define "main" }}
{{ partial "breadcrumbs.html" . }}
<article class="prose max-w-none dark:prose-invert">
<article id="content" class="prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1>{{ . }}</h1>
{{ end }}

View File

@ -4,7 +4,7 @@
{{ define "main" }}
{{ partial "breadcrumbs.html" . }}
<article class="prose max-w-none dark:prose-invert">
<article id="content" class="prose max-w-none dark:prose-invert">
{{ with .Title }}
<h1>{{ . }}</h1>
{{ end }}

View File

@ -4,7 +4,7 @@
{{ define "main" }}
{{ partial "breadcrumbs.html" . }}
<article class="prose max-w-none dark:prose-invert">
<article id="content" class="prose max-w-none dark:prose-invert">
<h1>{{ .Title }}</h1>
<blockquote>
<p><strong>Note</strong></p>