Skip to content

Commit f6f5504

Browse files
committed
add
1 parent 076c8ef commit f6f5504

File tree

123 files changed

+18
-369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+18
-369
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[module]
22
[module.hugoVersion]
33
extended = true
4-
min = "0.120.0"
4+
min = "0.140.0"
55
[[module.imports]]
66
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
77
disable = false

layouts/_default/baseof.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
{{ $.Scratch.Delete "social_list" }}
33
<!-- social_list -->
4-
{{ $social_params := slice "github" "twitter" "instagram" "rss" }}
4+
{{ $social_params := slice "github" "twitter" "bluesky" "instagram" "rss" }}
55
{{ range $social_params }}
66
{{ if isset site.Params.social . }}
77
{{ $.Scratch.Add "social_list" (slice .) }}
@@ -45,7 +45,7 @@
4545
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}"></script>
4646
{{- else }}
4747
{{- $js := (slice $app) | resources.Concat "/js/bundle.js" }}
48-
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
48+
<script type="text/javascript" src="{{ $js.Permalink }}" {{ if hugo.IsProduction }}integrity="{{ $js.Data.Integrity }}"{{ end }}></script>
4949
{{- end }}
5050

5151
<!-- Image Compare Viewer Config -->
@@ -56,18 +56,10 @@
5656
{{ (delimit ($ic.Get `config`) `,`) | safeJS }}
5757
];
5858
viewers.forEach((element, i) => {
59-
if (configs[i]) {
60-
try {
61-
let view = new ImageCompare(element, configs[i]).mount();
62-
} catch (error) {
63-
console.error(`Error mounting ImageCompare for element ${i}:`, error);
64-
}
65-
} else {
66-
console.warn(`No configuration found for ImageCompare element at index ${i}.`);
67-
}
59+
let view = new ImageCompare(element, configs[i]).mount();
6860
});
6961
</script>
7062
{{ end }}
7163

7264
</body>
73-
</html>
65+
</html>

layouts/partials/docs/footer/feedback.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
result.classList.add("is-visible");
7878
}
7979
try {
80-
{{ if .Site.GoogleAnalytics -}}
80+
{{ if .Site.Config.Services.GoogleAnalytics.ID -}}
8181
{{ if not .Site.Params.feedback.eventDest | or (in .Site.Params.feedback.eventDest "google") -}}
8282
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.emoticonEventName | default "feedback" | lower) }}',
8383
{
@@ -253,7 +253,7 @@
253253
}
254254
try {
255255
if (formType == "positive") {
256-
{{ if .Site.GoogleAnalytics -}}
256+
{{ if .Site.Config.Services.GoogleAnalytics.ID -}}
257257
{{ if not .Site.Params.feedback.eventDest | or (in .Site.Params.feedback.eventDest "google") -}}
258258
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.positiveEventName | default "Positive Feedback" | lower) }}',
259259
{
@@ -279,7 +279,7 @@
279279
{{ end -}}
280280
{{ end -}}
281281
} else if (formType == "negative") {
282-
{{ if .Site.GoogleAnalytics -}}
282+
{{ if .Site.Config.Services.GoogleAnalytics.ID -}}
283283
{{ if not .Site.Params.feedback.eventDest | or (in .Site.Params.feedback.eventDest "google") -}}
284284
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.negativeEventName | default "Positive Feedback" | lower) }}',
285285
{

layouts/partials/docs/footer/footer-scripts.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,4 @@
5454
<script type="text/javascript" src="{{ $js.Permalink }}" integrity="{{ $js.Data.Integrity }}" crossorigin="anonymous" defer></script>
5555
{{- else }}
5656
<script type="text/javascript" src="{{ $js.Permalink }}" defer></script>
57-
<script data-goatcounter="https://sangam.goatcounter.com/count"
58-
async src="//gc.zgo.at/count.js"></script>
5957
{{- end }}

layouts/partials/docs/head/opengraph.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
{{- end }}
4343

4444
{{- /* Facebook Page Admin ID for Domain Insights */}}
45-
{{- with .Site.Params.Social.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}
45+
{{- with .Site.Params.facebook_admin }}<meta property="fb:admins" content="{{ . }}" />{{ end }}

layouts/partials/docs/head/twitter_cards.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
{{- end }}
1919
<meta name="twitter:title" content="{{ .Title }}"/>
2020
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end -}}"/>
21-
{{ with .Site.Params.Social.twitter -}}
21+
{{ with .Site.Params.twitter -}}
2222
<meta name="twitter:site" content="@{{ . }}"/>
2323
{{ end -}}

public/404.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515

1616

17+
18+
1719

1820

1921

@@ -1063,10 +1065,10 @@ <h6> Subscribe to CloudNativeFolks Community Newsletter
10631065
</footer>
10641066

10651067

1066-
<script type="text/javascript" src="//localhost:1313/js/bundle.js"></script>
1068+
<script type="text/javascript" src="//localhost:1313/js/bundle.js" ></script>
10671069

10681070

10691071

10701072

10711073
</body>
1072-
</html>
1074+
</html>

public/docs/containerd/architecture-of-containerd/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686

8787

8888
Platforms: Cloud platforms and container orchestration systems that use containerd as their runtime, such as Google Cloud Platform, Docker, IBM Cloud, Microsoft Azure, Alibaba Cloud, AWS, and others."/>
89-
<meta name="twitter:site" content="@kubedaily"/>
9089

9190

9291
<script>(()=>{var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,e=localStorage.getItem("theme");t&&e===null&&(localStorage.setItem("theme","dark"),document.documentElement.setAttribute("data-dark-mode","")),t&&e==="dark"&&document.documentElement.setAttribute("data-dark-mode",""),e==="dark"&&document.documentElement.setAttribute("data-dark-mode","")})()</script>
@@ -3731,8 +3730,6 @@ <h1 class="content-title mb-0">
37313730

37323731

37333732
<script type="text/javascript" src="//localhost:1313/docs/js/bundle.js" defer></script>
3734-
<script data-goatcounter="https://sangam.goatcounter.com/count"
3735-
async src="//gc.zgo.at/count.js"></script>
37363733

37373734

37383735

public/docs/containerd/containerd-ctr/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,6 @@
11641164

11651165
Plugins link
11661166
This section is extensive and contains configurations for various ContainerD plugins. Only key plugins and configurations are listed here."/>
1167-
<meta name="twitter:site" content="@kubedaily"/>
11681167

11691168

11701169
<script>(()=>{var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,e=localStorage.getItem("theme");t&&e===null&&(localStorage.setItem("theme","dark"),document.documentElement.setAttribute("data-dark-mode","")),t&&e==="dark"&&document.documentElement.setAttribute("data-dark-mode",""),e==="dark"&&document.documentElement.setAttribute("data-dark-mode","")})()</script>
@@ -6191,8 +6190,6 @@ <h3 id="read-image-config-and-image-layers">read image config and image layers <
61916190

61926191

61936192
<script type="text/javascript" src="//localhost:1313/docs/js/bundle.js" defer></script>
6194-
<script data-goatcounter="https://sangam.goatcounter.com/count"
6195-
async src="//gc.zgo.at/count.js"></script>
61966193

61976194

61986195

public/docs/containerd/crun/index.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@
376376
https://hub.docker.com/
377377

378378
"/>
379-
<meta name="twitter:site" content="@kubedaily"/>
380379

381380

382381
<script>(()=>{var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,e=localStorage.getItem("theme");t&&e===null&&(localStorage.setItem("theme","dark"),document.documentElement.setAttribute("data-dark-mode","")),t&&e==="dark"&&document.documentElement.setAttribute("data-dark-mode",""),e==="dark"&&document.documentElement.setAttribute("data-dark-mode","")})()</script>
@@ -4119,8 +4118,6 @@ <h3 id="install-crun-via-binary">install crun via binary <a href="#install-crun-
41194118

41204119

41214120
<script type="text/javascript" src="//localhost:1313/docs/js/bundle.js" defer></script>
4122-
<script data-goatcounter="https://sangam.goatcounter.com/count"
4123-
async src="//gc.zgo.at/count.js"></script>
41244121

41254122

41264123

0 commit comments

Comments
 (0)