From 774f16867144d8ae7799a4750463e408760132b0 Mon Sep 17 00:00:00 2001 From: Ruihua Wen Date: Sat, 23 Nov 2024 02:20:02 +0900 Subject: [PATCH 1/2] website: remove the unnecessary community layout Signed-off-by: Ruihua Wen --- website/content/en/community/_index.md | 6 ---- website/layouts/community/list.html | 24 -------------- website/layouts/partials/community_links.html | 33 ------------------- 3 files changed, 63 deletions(-) delete mode 100644 website/content/en/community/_index.md delete mode 100644 website/layouts/community/list.html delete mode 100644 website/layouts/partials/community_links.html diff --git a/website/content/en/community/_index.md b/website/content/en/community/_index.md deleted file mode 100644 index 61ddad6546f..00000000000 --- a/website/content/en/community/_index.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Community -menu: {main: {weight: 40}} ---- - - diff --git a/website/layouts/community/list.html b/website/layouts/community/list.html deleted file mode 100644 index 04bf3058f0e..00000000000 --- a/website/layouts/community/list.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ define "main" -}} - -
-
-
-
- -

{{ T "community_join" . }}

-

{{ T "community_introduce" . }}

-
-
-
-
-{{ partial "community_links.html" . -}} - -{{ with .Content -}} -
- {{ . }} -
-{{- end -}} - -{{ end }} \ No newline at end of file diff --git a/website/layouts/partials/community_links.html b/website/layouts/partials/community_links.html deleted file mode 100644 index e1d466dc238..00000000000 --- a/website/layouts/partials/community_links.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ $links := .Site.Params.links -}} - - - -{{ define "community-links-list" -}} - -{{- end }} \ No newline at end of file From e44a9826830cc98699307be0661b6e05b3dee2f3 Mon Sep 17 00:00:00 2001 From: Ruihua Wen Date: Sun, 24 Nov 2024 00:22:31 +0900 Subject: [PATCH 2/2] website: redirect to /docs/community Signed-off-by: Ruihua Wen --- website/data/helpfullinks.yaml | 2 +- website/hugo.toml | 3 +++ website/netlify.toml | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/website/data/helpfullinks.yaml b/website/data/helpfullinks.yaml index 0c1bb67beb0..888b36f5088 100644 --- a/website/data/helpfullinks.yaml +++ b/website/data/helpfullinks.yaml @@ -8,5 +8,5 @@ label: Get started with Lima - header: Contributions welcome icon: fa-brands fa-github - link: /community + link: /docs/community label: Join the Lima community diff --git a/website/hugo.toml b/website/hugo.toml index 2fa55b2ee36..127cfd3f100 100644 --- a/website/hugo.toml +++ b/website/hugo.toml @@ -185,6 +185,9 @@ enable = false name = "GitHub" url = "https://github.com/lima-vm/lima" pre = '' +[[menus.main]] + name = "Community" + url = "/docs/community" [module] # uncomment line below for temporary local development of module diff --git a/website/netlify.toml b/website/netlify.toml index 6ecf5314cff..e0ddcf9078f 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -10,3 +10,9 @@ GO_VERSION = "1.23.0" [context.production] command = "make -C .. docsy && npm run build:production" + +[[redirects]] +from = "/community" +to = "/docs/community" +status = 301 +force = true