File tree Expand file tree Collapse file tree 5 files changed +13
-28
lines changed Expand file tree Collapse file tree 5 files changed +13
-28
lines changed Original file line number Diff line number Diff line change 13
13
{{ end }}
14
14
{{- end }}
15
15
16
- < link rel ="stylesheet " href ="{{ "css /jquery-ui.min.css" | relURL }}">
17
16
< link rel ="stylesheet " href ="{{ "css /feature-states.css" | relURL }}">
18
17
< link rel ="stylesheet " href ="{{ "css /custom-jekyll/tags.css" | relURL }}">
19
18
{{- if .Site.Params.announcement }}
Original file line number Diff line number Diff line change 85
85
< meta property ="og:image " content ="{{ "/images/kubernetes-horizontal-color.png" | relURL }}">
86
86
{{ end }}
87
87
< meta property ="og:type " content ="{{ $ogType }} ">
88
- < script src ="{{ "js /jquery-ui-1.12.1.min.js" | relURL }}"> </ script >
89
88
< script src ="{{ "js /sweetalert-2.1.2.min.js" | relURL }}"> </ script >
90
89
91
90
{{ if .HasShortcode "mermaid" }}
Original file line number Diff line number Diff line change 2
2
{{- $tab_set_id := .Get "name" | default (printf "tabset-%s-%d" (.Page.RelPermalink) (.Page.Scratch.Get "tabset-counter") ) | anchorize -}}
3
3
{{- $tabs := .Scratch.Get "tabs" -}}
4
4
{{- if .Inner -}}{{- /* We don't use the inner content, but Hugo will complain if we don't reference it. */ -}}{{- end -}}
5
- < div id ="{{ $tab_set_id }} ">
6
- < ul >
5
+ < ul class ="nav nav-tabs " id ="{{ $tab_set_id }} " role ="tablist ">
7
6
{{- range $i, $e := $tabs -}}
8
7
{{- $id := printf "%s-%d" $tab_set_id $i -}}
9
- < li > < a href ="#{{ $id }} "> {{- trim .name " " -}}</ a > </ li >
8
+ {{- if (eq $i 0) -}}
9
+ < li class ="nav-item "> < a data-toggle ="tab " class ="nav-link active " href ="#{{ $id }} " role ="tab " aria-controls ="{{ $id }} " aria-selected ="true "> {{- trim .name " " -}}</ a > </ li >
10
+ {{ else }}
11
+ < li class ="nav-item "> < a data-toggle ="tab " class ="nav-link " href ="#{{ $id }} " role ="tab " aria-controls ="{{ $id }} "> {{- trim .name " " -}}</ a > </ li >
12
+ {{- end -}}
10
13
{{- end -}}
11
14
</ ul >
15
+ < div class ="tab-content " id ="{{ $tab_set_id }} ">
12
16
{{- range $i, $e := $tabs -}}
13
17
{{- $id := printf "%s-%d" $tab_set_id $i -}}
14
- < div id ="{{ $id }} ">
18
+ {{- if (eq $i 0) -}}
19
+ < div id ="{{ $id }} " class ="tab-pane show active " role ="tabpanel " aria-labelledby ="{{ $id }} ">
20
+ {{ else }}
21
+ < div id ="{{ $id }} " class ="tab-pane " role ="tabpanel " aria-labelledby ="{{ $id }} ">
22
+ {{ end }}
23
+ < p >
15
24
{{- with .content -}}
16
25
{{- . -}}
17
26
{{- else -}}
39
48
</ div >
40
49
{{- end -}}
41
50
</ div >
42
- {{- $elem := $tab_set_id | safeJS -}}
43
- < script > $ ( function ( ) { $ ( "#{{ $elem }}" ) . tabs ( ) ; } ) ; </ script >
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments