File tree Expand file tree Collapse file tree 20 files changed +29
-402
lines changed
exampleSite/content/test-product Expand file tree Collapse file tree 20 files changed +29
-402
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ hasCustomContent: true
17
17
Examples for codeblock shortcode
18
18
{{</ card >}}
19
19
{{</ card-section >}}
20
-
21
20
# Other Products on ExampleSite
22
21
{{< card-section title="NGINX" showAsCards="true" >}}
23
22
{{< card title="NGINX Plus" titleUrl="/nginx/" >}}
Original file line number Diff line number Diff line change 4
4
{{ $isSingleLine := eq (len $lines) 1 }}
5
5
6
6
{{- if $isSingleLine -}}
7
- < div class ="code-block " data-mf =" true " style =" display: none; " >
7
+ < div class ="code-block ">
8
8
< div class ="code-container chroma ">
9
9
< button onclick ="copyToClipBoard(this, {{ $codeBlockId }}) " class ="code-copy-button " type ="button "> Copy</ button >
10
10
< div class ="highlight-v2 single-line " id ="{{ $codeBlockId }} ">
13
13
</ div >
14
14
</ div >
15
15
{{- else -}}
16
- < div class ="code-block " data-mf =" true " style =" display: none; " >
16
+ < div class ="code-block ">
17
17
{{- if and (ne .Type "") (ne .Type "none") -}}
18
18
< span class ="code-type chroma "> {{ .Type }}</ span >
19
19
{{- end -}}
24
24
</ div >
25
25
</ div >
26
26
</ div >
27
- {{- end -}}
28
- < div id ="code-block-v1 " data-mf ="false ">
29
- {{ $result.Wrapped }}
30
- </ div >
27
+ {{- end -}}
Original file line number Diff line number Diff line change 1
1
< h {{ .Level }}
2
2
id ="{{ .Anchor | safeURL }} ">
3
- < div data-mf ="false ">
4
- {{ .Text | safeHTML }}
5
- < a class ="headerlink float-right " href ="#{{ .Anchor | safeURL }} " title ="{{ .Text | safeHTML }} ">
6
- < i class ="fas fa-link fa-xs "> </ i >
7
- </ a >
8
- </ div >
9
-
10
- < div data-mf ="true ">
3
+ < div >
11
4
< a class ="headerlink float-right " href ="#{{ .Anchor | safeURL }} " title ="{{ .Text | safeHTML }} ">
12
5
{{ .Text | safeHTML }}
13
6
</ a >
Original file line number Diff line number Diff line change 47
47
</ header >
48
48
49
49
< section class ="base-layout " data-testid ="base-layout ">
50
- < section id ="breadcrumb-v1 ">
51
- {{ if not .IsHome }}
52
- {{ if not (in .Params.display_breadcrumb "false" ) }}
53
- {{ partial "breadcrumb" .}}
54
- {{ end }}
55
- {{ end }}
56
- </ section >
57
-
58
50
< div class ="main container-fluid min-page-height " data-menu-id ="{{.RelPermalink}} ">
59
51
{{ block "main" . }}{{ end }}
60
52
</ div >
61
53
</ section >
62
54
63
- < footer id ="footer ">
64
- {{ block "footer" . }}
65
- {{ partial "footer.html" . }}
66
- {{ end }}
67
- </ footer >
68
-
69
- < footer data-mf ="true " id ="footer-v2 " style ="display:none; ">
55
+ < footer id ="footer-v2 ">
70
56
{{ block "footer-v2" . }}
71
57
{{ partial "footer-v2.html" . }}
72
58
{{ end }}
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
2
< div class ="docs-container row override-sidebar-collapse ">
3
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 >
7
-
8
4
<!-- Replace icons -->
9
5
{{ $content := partial "icon-replacement.html" (dict "content" .Content) }}
10
6
18
14
19
15
< section class ="main-layout ">
20
16
< 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 ">
17
+ < button class ="sidebar__mobile__toggle " aria-expanded ="false "> {{ partial "lucide" (dict "context" . "icon" "x")}}Close</ button >
18
+ < nav id ="sidebar-v2 " class ="sidebar ">
23
19
{{ partial "sidebar-v2.html" . }}
24
20
</ nav >
25
21
</ div >
26
22
27
23
< section id ="maincontent " class ="content-layout ">
28
24
< div data-cms-edit ="content " class ="text-content ">
29
- < section class ="breadcrumb-layout wide " data-mf =" true " style =" display: none; " >
25
+ < section class ="breadcrumb-layout wide ">
30
26
{{ if not .IsHome }}
31
27
{{ if not (in .Params.display_breadcrumb "false" ) }}
32
28
{{ partial "breadcrumb" .}}
Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
- < div class ="row flex-xl-nowrap " id ="list-v1 ">
3
- < nav class ="sidenav overflow-auto col-md-3 d-none d-xl-block d-print-none ">
4
- {{ partial "sidebar.html" . }}
5
- </ nav >
6
- < main class ="content col-xl-9 d-block " role ="main ">
7
- {{ partial "list-main" . }}
8
- </ main >
9
- </ div >
10
-
11
2
{{/* mf list page */}}
12
-
13
- < main class ="content col d-block align-top content-has-toc " role ="main " data-mf ="true " style ="display: none ">
3
+ < main class ="content col d-block align-top content-has-toc " role ="main ">
14
4
< section class ="main-layout ">
15
5
< div class ="sidebar-layout " id ="sidebar-layout ">
16
- < button class ="sidebar__mobile__toggle " aria-expanded ="false " data-mf =" true " > {{ partial "lucide" (dict "context" . "icon" "x")}}Close</ button >
17
- < nav data-mf =" true " id ="sidebar-v2 " class ="sidebar " style =" display:none; ">
6
+ < button class ="sidebar__mobile__toggle " aria-expanded ="false "> {{ partial "lucide" (dict "context" . "icon" "x")}}Close</ button >
7
+ < nav id ="sidebar-v2 " class ="sidebar ">
18
8
{{ partial "sidebar-v2.html" . }}
19
9
</ nav >
20
10
</ div >
21
11
22
- < section id ="maincontent " class ="content-layout " data-mf =" true " style =" display: none " >
12
+ < section id ="maincontent " class ="content-layout ">
23
13
< div data-cms-edit ="content " class ="text-content list-page ">
24
14
< section class ="breadcrumb-layout wide ">
25
15
{{ if not .IsHome }}
58
48
</ div>
59
49
</ section>
60
50
</ section>
61
-
62
-
63
-
64
51
</ section>
65
52
</ main>
66
53
{{ end }}
Original file line number Diff line number Diff line change 1
1
< nav aria-label ="breadcrumb " class ="breadcrumb navbar ">
2
2
< div class ="nav flex-md-row ">
3
3
< ol class ="breadcrumb ">
4
- < button class ="sidebar__mobile__toggle " aria-expanded ="false " data-mf =" true " > {{ partial "lucide" (dict "context" . "icon" "align-justify") }}</ button >
4
+ < button class ="sidebar__mobile__toggle " aria-expanded ="false "> {{ partial "lucide" (dict "context" . "icon" "align-justify") }}</ button >
5
5
< li > < a href ="/ " alt ="NGINX Docs Home "> Home</ a > </ li >
6
6
{{- define "breadcrumb" -}}
7
7
{{- with .Parent -}}
Original file line number Diff line number Diff line change 19
19
{{ $class = printf "%s %s" $class $inlineOption }}
20
20
{{ end }}
21
21
22
-
23
-
24
- {{/* Old frame callout */}}
25
- < blockquote class ="{{ $class }} " data-mf ="false ">
26
- < div >
27
- {{- with $icon -}}
28
- < i class ="{{ . }} "> </ i >
29
- {{- end -}}
30
- < strong > {{ $title }}</ strong >
31
- {{ .content | markdownify }}
32
- </ div >
33
- </ blockquote >
34
-
35
-
36
22
{{/* Render a different block, if "loud" callouts are used */}}
37
23
{{ $specialTitles := slice "Caution" "Warning" "Deprecated" "Important" }}
38
24
{{ $specialTitleIcons := dict
47
33
{{ if $isSpecialTitle }}
48
34
{{/* Loud callouts */}}
49
35
< div >
50
- < blockquote class ="{{ $class }} " data-mf =" true " style =" display: none; " >
36
+ < blockquote class ="{{ $class }} ">
51
37
< div >
52
38
< div class ="call-out-type ">
53
39
{{ partial "feather" (dict "context" . "icon" $icon) .}}
66
52
67
53
{{ $cleanTitle := strings.TrimSuffix ":" $title}}
68
54
69
- < blockquote class ="{{ $class }} note " data-mf =" true " style =" display: none; " data- title ="{{ $cleanTitle }} ">
55
+ < blockquote class ="{{ $class }} note " data-title ="{{ $cleanTitle }} ">
70
56
< div class ="callout-content ">
71
57
{{- with $icon -}}
72
58
< i class ="{{ . }} "> </ i >
Original file line number Diff line number Diff line change 1
- < atomic-search-interface id ="search-standalone-header " data-mf ="true " style ="display:none; ">
2
- < atomic-search-box redirection-url ="/search.html ">
1
+ {{ $redirectionUrl := .redirectionUrl | default "/search.html" }}
2
+ < atomic-search-interface id ="search-standalone-header ">
3
+ < atomic-search-box redirection-url ={{ $redirectionUrl }} >
3
4
</ atomic-search-box >
4
5
</ atomic-search-interface >
Original file line number Diff line number Diff line change 3
3
{{ $class := "card-grid wide"}}
4
4
5
5
< div class ="{{ if eq $showAsCards "true " }}{{ $class }}{{ end }}">
6
- <!-- Old frame -->
7
- < section data-mf ="false ">
8
- < div class ="row ">
9
- < div class ="card-deck ">
10
- {{ range .Pages.GroupBy "Section" }}
11
- {{ range .Pages.ByWeight }}
12
- {{ $title := .Title }}
13
- < div class ="col-md-5 card ">
14
- < div class ="card-body ">
15
- < h3 class ="card-title " style ="display: flex; align-items: center; gap: 5px; ">
16
- < i class ="fas fa-{{if eq .Kind "page "}}file-alt{{else}}book{{end}} fa-lg card-img-top"> </ i >
17
- < a href ="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}} "> {{ .Title }}</ a >
18
- </ h3 >
19
- {{ range $cards }}
20
- {{ if eq .title $title }}
21
- < p > {{ .content }}</ p >
22
- {{ end }}
23
- {{ end }}
24
- </ div >
25
- </ div >
26
- {{ end }}
27
- {{ end }}
28
- </ div >
29
- </ div >
30
- </ section >
31
-
32
6
<!-- Mainframe -->
33
- < div data-mf =" true " style =" display: none; " >
7
+ < div >
34
8
{{ range .Pages.ByWeight }}
35
9
{{ $title := .Title }}
36
10
< div class ="card-container ">
Original file line number Diff line number Diff line change 7
7
{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
8
8
< div class ="navbar navbar-nav ">
9
9
<!-- Standalone search box. -->
10
- {{ partial "coveo-legacy-search.html" . }}
11
- {{ partial "coveo-atomic-search.html" . }}
10
+ {{ partial "coveo-atomic-search.html" }}
12
11
</ div >
13
12
{{ end }}
14
13
{{ if ( in .Site.Params.buildtype "package" ) }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{{- /* Usage: */ -}}
2
2
{{- /* (dict "context" . "icon" "circle") */ -}}
3
3
< svg xmlns ="http://www.w3.org/2000/svg " width ="24 " height ="24 " viewBox ="0 0 24 24 " aria-hidden ="true " class ="lucide "
4
- style ="{{ .style | safeCSS }} " data-mf =" true " style =" display: none " >
4
+ style ="{{ .style | safeCSS }} ">
5
5
< use href ="/images/lucide-sprite.svg#{{ .icon }} "> </ use >
6
6
</ svg >
You can’t perform that action at this time.
0 commit comments