Define custom section partial for K8s overview
This commit is contained in:
parent
f0ab423e1c
commit
fef04ab4c4
|
|
@ -477,7 +477,8 @@ section#cncf {
|
||||||
}
|
}
|
||||||
|
|
||||||
// OCEAN NODES
|
// OCEAN NODES
|
||||||
#oceanNodes {
|
#oceanNodes, .td-home .k8s-overview {
|
||||||
|
|
||||||
padding-top: $ocean-nodes-padding-Y;
|
padding-top: $ocean-nodes-padding-Y;
|
||||||
padding-bottom: $ocean-nodes-padding-Y;
|
padding-bottom: $ocean-nodes-padding-Y;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ $video-section-height: 550px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#oceanNodes {
|
#oceanNodes, .td-home .k8s-overview {
|
||||||
.main-section {
|
.main-section {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ $feature-box-div-width: 45%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#oceanNodes {
|
#oceanNodes, .td-home .k8s-overview {
|
||||||
h3 {
|
h3 {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
<section id="{{ .id }}"{{ with .class }} class="{{ . }}"{{ end }}>
|
||||||
|
{{ .inner }}
|
||||||
|
</section>
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
{{- $style := .Get "style" -}}
|
{{- $style := .Get "style" -}}
|
||||||
{{- $id := .Get "id" | default (printf "section-%d" .Ordinal) -}}
|
{{- $id := .Get "id" | default (printf "section-%d" .Ordinal) -}}
|
||||||
{{- $bg := .Get "background-image" -}}
|
{{- $bg := .Get "background-image" -}}
|
||||||
|
{{/* special case Kubernetes overview */}}
|
||||||
|
{{- if eq $class "k8s-overview" -}}
|
||||||
|
{{- partial "kubernetes-overview.html" (dict "id" $id "class" $class "inner" $.Inner ) -}}
|
||||||
|
{{- else -}}
|
||||||
{{- if $bg -}}
|
{{- if $bg -}}
|
||||||
{{ template "shortcodes-blocks_getimage" (dict "name" $bg "ctx" . "target" "bg") }}
|
{{ template "shortcodes-blocks_getimage" (dict "name" $bg "ctx" . "target" "bg") }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
@ -9,3 +13,4 @@
|
||||||
<section id="{{ $id }}"{{ with $class }} class="{{ . }}"{{ end }} style="{{ with $image }}background-image: url({{ .Permalink }}); {{ end }}{{ with $style }}{{ . | safeCSS }}{{ end }}">
|
<section id="{{ $id }}"{{ with $class }} class="{{ . }}"{{ end }} style="{{ with $image }}background-image: url({{ .Permalink }}); {{ end }}{{ with $style }}{{ . | safeCSS }}{{ end }}">
|
||||||
{{ $.Inner }}
|
{{ $.Inner }}
|
||||||
</section>
|
</section>
|
||||||
|
{{- end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue