diff --git a/module/layouts/_partials/components/translations/community-translations2.html b/module/layouts/_partials/components/translations/community-translations2.html index 3636cb9..1b57a35 100644 --- a/module/layouts/_partials/components/translations/community-translations2.html +++ b/module/layouts/_partials/components/translations/community-translations2.html @@ -21,7 +21,8 @@

{{ i18n "download_community_translations" . }}

{{- $productionLanguagesData = $productionLanguagesFile.Content | transform.Unmarshal }} {{- end }} {{- else }} - {{- $productionLanguagesUrl := printf "%slanguages.json?v=%d" .Site.Params.productionSiteUrl now.Unix }} + {{- $baseUrl := strings.TrimSuffix "/" .Site.Params.productionSiteUrl }} + {{- $productionLanguagesUrl := printf "%s/languages.json?v=%d" $baseUrl now.Unix }} {{- with try (resources.GetRemote $productionLanguagesUrl) }} {{ with .Err }} {{ warnf "Error fetching production languages: %s" . }} diff --git a/module/layouts/_partials/components/translations/preview-translations.html b/module/layouts/_partials/components/translations/preview-translations.html index f7dc5bb..aabbb48 100644 --- a/module/layouts/_partials/components/translations/preview-translations.html +++ b/module/layouts/_partials/components/translations/preview-translations.html @@ -15,13 +15,15 @@ {{- if eq hugo.Environment "production" }} {{- $productionLanguagesUrl = "/languages.json" }} {{- else }} - {{- $productionLanguagesUrl = printf "%slanguages.json?v=%d" .Site.Params.productionSiteUrl now.Unix }} + {{- $baseUrl := strings.TrimSuffix "/" .Site.Params.productionSiteUrl }} + {{- $productionLanguagesUrl = printf "%s/languages.json?v=%d" $baseUrl now.Unix }} {{- end }} {{- if eq hugo.Environment "preview" }} {{- $previewLanguagesUrl = "/languages.json" }} {{- else }} - {{- $previewLanguagesUrl = printf "%slanguages.json?v=%d" .Site.Params.previewSiteUrl now.Unix }} + {{- $baseUrl := strings.TrimSuffix "/" .Site.Params.previewSiteUrl }} + {{- $previewLanguagesUrl = printf "%s/languages.json?v=%d" $baseUrl now.Unix }} {{- end }} {{/* Load production languages */}} diff --git a/serve.ps1 b/serve.ps1 new file mode 100644 index 0000000..e2445f0 --- /dev/null +++ b/serve.ps1 @@ -0,0 +1,2 @@ +Remove-Item -Recurse -Force .\public\ +hugo serve --source site --config hugo.yaml, hugo.local.yaml \ No newline at end of file diff --git a/site/content/Guide1/_index.md b/site/content/Guide1/_index.md index 06b76fa..f557353 100644 --- a/site/content/Guide1/_index.md +++ b/site/content/Guide1/_index.md @@ -33,6 +33,4 @@ layman_description: | [Guide 1](/guide-1/latest) is a short and clear handbook that explains how to manage work effectively. It helps team members visualize what they're working on, avoid multitasking, and deliver more reliably. It's written to be easy to follow, with just the essentials. Perfect for any team that wants a simple way to organize work and improve flow. practitioner_description: | [Guide 1](/guide-1/latest) is the official, succinct manual for work management in knowledge work. It outlines strategies for optimizing the flow of value through a process, using three core practices: visualizing workflow, actively managing work items, and continuously improving the workflow. It defines a minimal set of required elements and flow metrics. This guide is ideal for establishing a shared understanding of fundamentals in teams or organizations, especially where simplicity, stability, and clarity are essential. -aliases: - - /guide1/latest --- diff --git a/site/content/Guide1/_index.min.md b/site/content/Guide1/_index.min.md index 8f977c6..e663422 100644 --- a/site/content/Guide1/_index.min.md +++ b/site/content/Guide1/_index.min.md @@ -40,6 +40,4 @@ layman_description: | practitioner_description: | [Da Guide 1](/min/guide-1/latest) is da pro banana booky. Say how to flow da value like a river of pudding. Got da 3 big things: see da work, manage da work, fix da work. All clean, all shiny. If you need clear, stable, no-headache work stuff, dis da one. -aliases: - - /guide-1/latest --- diff --git a/site/content/Guide1/translations/index.md b/site/content/Guide1/translations/index.md index e337153..1a06714 100644 --- a/site/content/Guide1/translations/index.md +++ b/site/content/Guide1/translations/index.md @@ -6,5 +6,5 @@ description: Originals & Translations of Guide 1 aliases: - /downloads/ - /download/ - - /translationsdirectory/ + - /translations/ --- diff --git a/site/content/Guide2/2025.7/index.md b/site/content/Guide2/2025.7/index.md index 90c57a7..bafc166 100644 --- a/site/content/Guide2/2025.7/index.md +++ b/site/content/Guide2/2025.7/index.md @@ -15,8 +15,6 @@ sansfont: "Arial" monofont: "Courier New" sitemap: priority: 1.0 -aliases: - - /guide-2/latest/ --- Guide 2 - Extended Edition diff --git a/site/content/Guide2/2025.7/index.min.md b/site/content/Guide2/2025.7/index.min.md index a7010e4..f90672c 100644 --- a/site/content/Guide2/2025.7/index.min.md +++ b/site/content/Guide2/2025.7/index.min.md @@ -18,8 +18,6 @@ sansfont: "Ari-Banana" monofont: "Courier Peel" sitemap: priority: 1.0 -aliases: - - /guide-2/latest/ --- Guide 2 Banana Booky – For Smart Worky Stuff diff --git a/site/content/Guide2/translations/index.md b/site/content/Guide2/translations/index.md index 49ddd5b..c325a56 100644 --- a/site/content/Guide2/translations/index.md +++ b/site/content/Guide2/translations/index.md @@ -6,5 +6,5 @@ Type: "guide" aliases: - /downloads/ - /download/ - - /translationsdirectory/ + - /translations/ --- diff --git a/site/content/_index.md b/site/content/_index.md index adcb21f..091f93e 100644 --- a/site/content/_index.md +++ b/site/content/_index.md @@ -1,6 +1,5 @@ --- title: "Guides Site" -url: "/" not_sure_which_to_use: | This is the big guides site --- diff --git a/site/content/_index.min.md b/site/content/_index.min.md index a9db2aa..37d2345 100644 --- a/site/content/_index.min.md +++ b/site/content/_index.min.md @@ -1,6 +1,5 @@ --- title: "Banana Guide Bookies" -url: "/" not_sure_which_to_use: | New to work stuff? Go go [Da Guide 1](/guide-1/latest) first-y! diff --git a/site/go.mod b/site/go.mod index 60ff1e0..103de76 100644 --- a/site/go.mod +++ b/site/go.mod @@ -2,4 +2,8 @@ module github.com/nkdAgility/HugoGuides/site go 1.24.5 -require github.com/nkdAgility/HugoGuides/module v0.6.4 // indirect +require ( + github.com/KanbanGuides/KanbanGuides/site v0.0.0-20250807073058-1fb088304516 // indirect + github.com/ScrumGuides/ScrumGuide-ExpansionPack/site v0.0.0-20250801110201-076bbcf543d8 // indirect + github.com/nkdAgility/HugoGuides/module v0.7.2 // indirect +) diff --git a/site/go.sum b/site/go.sum index d5e09ef..9820e05 100644 --- a/site/go.sum +++ b/site/go.sum @@ -1,2 +1,8 @@ +github.com/KanbanGuides/KanbanGuides/site v0.0.0-20250807073058-1fb088304516 h1:bQ4DavaR+iSUnp08SEGOJX8QF9gPKBiemz4Hcxmz4hw= +github.com/KanbanGuides/KanbanGuides/site v0.0.0-20250807073058-1fb088304516/go.mod h1:9SBjS7dL3fK2jPW/8vSRTH5Z3uogJHgV4P8cHF733c4= +github.com/ScrumGuides/ScrumGuide-ExpansionPack/site v0.0.0-20250801110201-076bbcf543d8 h1:ZQbyJ44DJ7WCTqYtQp8MiVmPi+IW47C+1RU3PV1Eq+M= +github.com/ScrumGuides/ScrumGuide-ExpansionPack/site v0.0.0-20250801110201-076bbcf543d8/go.mod h1:MplyV/zE4iA2b3ixo6kX8HUwn0kb8Gjts6JP8qedhww= github.com/nkdAgility/HugoGuides/module v0.6.4 h1:5MCak7zvxEJ9N0S6C74s22QNqhsiOoX2NMJ7tfMfOwk= github.com/nkdAgility/HugoGuides/module v0.6.4/go.mod h1:VGUy7t0I5Ba4FWVFpuBzVI1RN/cOBvcWSeYGsAj37tE= +github.com/nkdAgility/HugoGuides/module v0.7.2 h1:eKkwj7p2r9+CpR7axltRWOX5KPJlhN3UQcVmhsOr8Zc= +github.com/nkdAgility/HugoGuides/module v0.7.2/go.mod h1:VGUy7t0I5Ba4FWVFpuBzVI1RN/cOBvcWSeYGsAj37tE= diff --git a/site/hugo.yaml b/site/hugo.yaml index 01cb9e9..eb841cd 100644 --- a/site/hugo.yaml +++ b/site/hugo.yaml @@ -24,6 +24,16 @@ languages: description: Bello! Banana Guides para banana work! keywords: Banana status: reference + ja: + languageName: Japanese + weight: 2 + # title: Open Guide to Kanban <- 英語がKanban Guidesのため、ここは日本語のカンバンガイドに合わせる + title: カンバンガイド + params: + # description: The Open Guide to Kanban is a free, community-driven reference for applying Kanban in knowledge work. It defines the core practices, metrics, and principles necessary to improve flow, optimise value delivery, and enhance team sustainability. This guide supports scalable Kanban implementations across diverse industries and complements other agile, lean, and flow-based approaches. + description: オープン版カンバンガイドは、ナレッジワークにカンバンを適用するためのコミュニティ主体の無料のリファレンスです。フローを改善し、価値提供を最適化し、チームの持続可能性を向上させるために必要なコアプラクティス、計測指標、および原則を定義しています。このガイドは、多様な業界でのスケーラブルなカンバンの導入を支援し、他のアジャイル、リーン、およびフローに基づくアプローチを補完するものです。 + # keywords: Kanban, Open Guide to Kanban, kanban guide, kanban method, knowledge work, flow optimisation, WIP limits, value delivery, agile, lean, continuous improvement, service level expectation, cumulative flow, throughput, metrics, work item age, flow efficiency, visualisation, work in progress, process improvement, kanban board, definition of workflow, outcome-oriented delivery + keywords: カンバン, オープン版カンバンガイド, カンバンガイド, カンバン手法, ナレッジワーク, フロー最適化, WIP制限, 価値提供, アジャイル, リーン, 継続的改善, サービスレベル期待値, 累積フロー, スループット, 計測指標, 作業項目の年齢, フロー効率, 可視化, 進行中の作業, プロセス改善, カンバンボード, ワークフローの定義, アウトカム指向の提供 summaryLength: 30 @@ -77,6 +87,14 @@ outputFormats: module: imports: + - path: github.com/ScrumGuides/ScrumGuide-ExpansionPack/site + mounts: + - source: content + target: content + - path: github.com/KanbanGuides/KanbanGuides/site + mounts: + - source: content + target: content - path: github.com/nkdAgility/HugoGuides/module replacements: - github.com/nkdAgility/HugoGuides/module -> ../../module diff --git a/site/layouts/index.html b/site/layouts/index.html new file mode 100644 index 0000000..da0eac0 --- /dev/null +++ b/site/layouts/index.html @@ -0,0 +1,144 @@ +{{- define "main" }} + +
+
+
+
+

{{ .Site.Title }}

+

{{ i18n "guides_intro_text" . }}

+
+
+ + +
+ {{ $sections := .Site.Sections }} + {{ range .Site.Home.Translations }} + {{ $sections = $sections | lang.Merge .Site.Sections }} + {{ end }} + {{/* {{ $sections = lang.Merge $defaultSite.sections $sections }} */}} + {{- range $sections.ByWeight }} +
+
+
+
{{ .Params.short_title | default .Title }}
+
+
+
+

{{ .Params.which_to_use_summary | markdownify }}

+ + + + + + {{- if .Params.guide_comparison }} + {{- $guideComparison := .Params.guide_comparison }} + {{- if and $guideComparison (reflect.IsSlice $guideComparison) (gt (len $guideComparison) 0) }} +
+
{{ i18n "at_a_glance_title" . }}
+
+ {{- range $index, $item := $guideComparison }} +
+
{{ $item.title | title }}:
+
{{ $item.content | markdownify }}
+
+ {{- end }} +
+
+ {{- end }} + {{- end }} +
+
+
+ {{- end }} +
+ + +
+ +
+ +
+
+

+ + {{ i18n "not_sure_which_to_use_title" . }} +

+
+
+
+ {{ .Params.not_sure_which_to_use | markdownify }} +
+
+
+ + +
+
+

+ + {{ i18n "what_is_guides_title" . }} +

+
+
+
+ {{ .Site.Params.description | markdownify }} +
+
+
+
+ + +
+
+
+

+ + {{ i18n "open_source_title" . }} +

+
+
+

{{ i18n "open_source_description" . }}

+ +
{{ i18n "contributors_title" . }}
+

{{ i18n "contributors_description" . }}

+ {{ $sections := .Site.Sections }} + {{ range .Site.Home.Translations }} + {{ $sections = $sections | lang.Merge .Site.Sections }} + {{ end }} + {{- range $sections.ByWeight }} +
{{ .Params.short_title | default .Title }}
+ + {{- $contributors := partial "functions/get-contributors.html" . -}} + {{- $contributors = where $contributors "role" "in" (slice "contributor" "creator") -}} + {{- if $contributors -}} +
+
+ {{ range sort $contributors "weight" "asc" }} + {{ partial "components/guide/guide-author.html" . }} + {{ end }} +
+
+ {{- end -}} + {{- end }} +
+
+
+
+
+
+{{- end }}