-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[docs] append "pro" and "open source" to article names #14432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bugfix
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| title: "🌐 Universal Parser (Pro)" | ||
| title: "🌐 Universal Parser" | ||
| description: "" | ||
| draft: "false" | ||
| weight: 1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| --- | ||
| title: "🌐 Universal Parser (Pro)" | ||
| title: "🌐 Universal Parser" | ||
| description: "" | ||
| draft: "false" | ||
| weight: 1 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| {{ define "main" }} | ||
| <div class="row flex-xl-nowrap"> | ||
| {{ if (in site.Params.doks.sectionNav .Section) -}} | ||
| <div class="col-lg-5 col-xl-4 docs-sidebar{{ if ne site.Params.doks.navbarSticky true }} docs-sidebar-top{{ end }}{{ if site.Params.doks.headerBar }} docs-sidebar-offset{{ end }} d-none d-lg-block"> | ||
| {{ partial "sidebar/section-menu.html" . }} | ||
| </div> | ||
| {{ end -}} | ||
| {{ if and (eq site.Params.doks.containerBreakpoint "fluid") (in .Site.Params.mainSections .Type) }} | ||
| <div class="col container-fw d-lg-flex flex-lg-row justify-content-center mx-auto"> | ||
| {{ end }} | ||
| {{ if ne .Params.toc false -}} | ||
| <nav class="docs-toc{{ if ne site.Params.doks.navbarSticky true }} docs-toc-top{{ end }}{{ if site.Params.doks.headerBar }} docs-toc-offset{{ end }} d-none d-xl-block col-xl-3" aria-label="Secondary navigation"> | ||
| {{ partial "sidebar/docs-toc-desktop.html" . }} | ||
| </nav> | ||
| {{ end -}} | ||
| {{ if .Params.toc -}} | ||
| <main class="docs-content col-lg-11 col-xl-9"> | ||
| {{ else -}} | ||
| <main class="docs-content col-lg-11 col-xl-9 mx-xl-auto"> | ||
| {{ end -}} | ||
| {{ if site.Params.doks.breadcrumbTrail -}} | ||
| <!-- https://discourse.gohugo.io/t/breadcrumb-navigation-for-highly-nested-content/27359/6 --> | ||
| <nav aria-label="breadcrumb"> | ||
| <ol class="breadcrumb"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WCAG 1.3.1:
DetailsScreen readers announce list structure ('list with 5 items') based on proper markup. Placing non- |
||
| {{ partial "main/breadcrumb" . -}} | ||
| <li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li> | ||
| </ol> | ||
| </nav> | ||
| {{ end }} | ||
| <h1>{{ .Title }}{{ with .Params.audience }}{{ if eq . "opensource" }} (Open Source){{ else if eq . "pro" }} (Pro){{ end }}{{ end }}</h1> | ||
| <!-- <p class="lead">{{ .Params.lead | safeHTML }}</p> --> | ||
| {{ if ne .Params.toc false -}} | ||
| <nav class="toc-mobile d-xl-none" aria-label="Quaternary navigation"> | ||
| {{ partial "sidebar/docs-toc-mobile.html" . }} | ||
| </nav> | ||
| {{ end -}} | ||
|
|
||
| {{ if site.Params.doks.headlineHash -}} | ||
| {{ partial "main/headline-hash" .Content }} | ||
| {{ else -}} | ||
| {{ .Content }} | ||
| {{ end -}} | ||
| <div class="page-footer-meta d-flex flex-column flex-md-row justify-content-between"> | ||
| {{ if site.Params.doks.lastMod -}} | ||
| {{ partial "main/last-modified.html" . }} | ||
| {{ end -}} | ||
| {{ if site.Params.doks.editPage -}} | ||
| {{ partial "main/edit-page.html" . }} | ||
| {{ end -}} | ||
| </div> | ||
| {{ partial "main/docs-navigation.html" . }} | ||
| <!-- | ||
| {{ if not .Site.Params.options.collapsibleSidebar -}} | ||
| {{ partial "main/docs-navigation.html" . }} | ||
| {{ else -}} | ||
| <div class="my-n3"></div> | ||
| {{ end -}} | ||
| --> | ||
| </main> | ||
| {{ if and (eq site.Params.doks.containerBreakpoint "fluid") (in .Site.Params.mainSections .Type) }} | ||
| </div> | ||
| {{ end }} | ||
| </div> | ||
| {{ end }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best Practice: Page has multiple main landmarks.
Page should have exactly one main landmark.
Details
The main landmark contains the primary content of the page. Screen readers allow users to jump directly to main content. Use a single
<main>element (or role='main') to wrap the central content, excluding headers, footers, and navigation.Best Practice: Page has multiple main landmarks.
Page should not have more than one main landmark.
Details
Only one main landmark should exist per page. The main landmark identifies the primary content area. If you have multiple content sections, use
<section>with appropriate headings instead of multiple main elements.