Skip to content

Commit d918fc2

Browse files
committed
Hugo: Bump hugo version and remove docs.html
1 parent 379bb08 commit d918fc2

File tree

3 files changed

+73
-75
lines changed

3 files changed

+73
-75
lines changed

layouts/_default/docs.html

Lines changed: 0 additions & 73 deletions
This file was deleted.

layouts/_default/single.html

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,73 @@
1-
{{ .Render "docs" }}
1+
{{ define "main" }}
2+
<div class="docs-container row override-sidebar-collapse">
3+
<div class="docs-container row override-sidebar-collapse">
4+
<nav id="sidebar" class="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none align-top">
5+
{{ partial "sidebar.html" . }}
6+
</nav>
27

8+
<!-- Replace icons -->
9+
{{ $content := partial "icon-replacement.html" (dict "content" .Content) }}
10+
11+
{{if (.Params.catalog) }}
12+
<main class="content content-has-toc" role="main">
13+
{{ else if and (gt .WordCount 200 ) (.Params.toc) }}
14+
<main class="content col d-block align-top content-has-toc" role="main">
15+
{{ else }}
16+
<main class="content col d-block align-top content-no-toc" role="main">
17+
{{ end }}
18+
19+
<section class="main-layout">
20+
<div class="sidebar-layout" id="sidebar-layout">
21+
<button class="sidebar__mobile__toggle" aria-expanded="false" data-mf="true">{{ partial "lucide" (dict "context" . "icon" "x")}}Close</button>
22+
<nav data-mf="true" id="sidebar-v2" class="sidebar">
23+
{{ partial "sidebar-v2.html" . }}
24+
</nav>
25+
</div>
26+
27+
<section id="maincontent" class="content-layout">
28+
<div data-cms-edit="content" class="text-content">
29+
<section class="breadcrumb-layout wide" data-mf="true" style="display: none;">
30+
{{ if not .IsHome }}
31+
{{ if not (in .Params.display_breadcrumb "false" ) }}
32+
{{ partial "breadcrumb" .}}
33+
{{ end }}
34+
{{ end }}
35+
</section>
36+
{{ partial "banner" .}}
37+
<h1>{{ .Title }}</h1>
38+
{{ $content | safeHTML }}
39+
{{ if eq .Page.Draft true }}{{ partial "draft-badge.html" . }}{{ end }}
40+
{{ if in .Params.doctypes "beta" }}{{ partial "beta-badge" . }}{{ end }}
41+
42+
<hr>
43+
44+
{{ if .Page.Lastmod }}
45+
<div class="last-modified">
46+
{{ partial "page-meta-links" . }}
47+
</div>
48+
{{ end }}
49+
50+
{{ partial "version-list" . }}
51+
{{ partial "qualtrics-feedback.html" }}
52+
53+
{{ partial "previous-next-links-in-section-with-title.html" . }}
54+
</main>
55+
{{ if and (gt .WordCount 200 ) (.Params.toc) }}
56+
{{ if (add (len (findRE "<h3" .Content)) (len (findRE "<h2" .Content))) }}
57+
<div id="toc" class="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top">
58+
{{ partial "toc.html" . }}
59+
</div>
60+
{{ end }}
61+
{{ end }}
62+
63+
</div>
64+
</section>
65+
</section>
66+
</div>
67+
<!-- If there is a script defined in the page metadata, load it -->
68+
{{if .Params.script}}
69+
{{ $script := (delimit (slice "scripts" .Params.script) "/")}}
70+
{{ partial (string $script) .}}
71+
{{end }}
72+
73+
{{ end }}

theme.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ licenselink = "https://github.com/nginxinc/nginx-hugo-theme/blob/main/LICENSE"
77
description = "Hugo theme for F5 NGINX documentation"
88
homepage = "https://docs.nginx.com/"
99

10-
min_version = "0.134.0"
10+
min_version = "0.147.8"
1111

1212
[author]
1313
name = "F5, Inc."

0 commit comments

Comments
 (0)