From 8fc8f3784d3f5aa200704f55e838d2ca0dd7770a Mon Sep 17 00:00:00 2001 From: liuboaibc Date: Mon, 22 Jun 2020 15:25:35 +0800 Subject: [PATCH] image alt --- config/_default/config.toml | 40 ++++++++++++++++---------------- content/en/_index.md | 12 +++++----- content/zh/_index.md | 12 +++++----- data/en/footer.yaml | 20 ++++++++-------- data/zh/footer.yaml | 18 +++++++-------- i18n/en.yaml | 12 ++++++++++ i18n/zh.yaml | 6 +++++ layouts/404.html | 6 ++--- layouts/_default/scenario.html | 8 +++---- layouts/blogs/list.html | 2 +- layouts/case/list.html | 8 +++---- layouts/conferences/list.html | 6 ++--- layouts/contribution/list.html | 21 +++++++++-------- layouts/index.html | 42 ++++++++++++++++++---------------- layouts/partner/list.html | 16 ++++++------- layouts/projects/list.html | 2 +- layouts/videos/list.html | 4 ++-- 17 files changed, 128 insertions(+), 107 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 0d1cb630c..6c20a1203 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -41,19 +41,19 @@ hasChildren = true [[languages.en.menu.main]] parent = "Scenarios" name = "Embracing One-stop DevOps Workflow" - URL = "devops" + URL = "devops/" weight = 1 [[languages.en.menu.main]] parent = "Scenarios" name = "Running Microservices on Kubernetes" - URL = "service-mesh" + URL = "service-mesh/" weight = 2 [[languages.en.menu.main]] parent = "Scenarios" name = "Building Cloud Native Observability" - URL = "observability" + URL = "observability/" weight = 3 [[languages.en.menu.main]] @@ -64,25 +64,25 @@ hasChildren = true [[languages.en.menu.main]] parent = "Resources" name = "Open Source Projects" - URL = "projects" + URL = "projects/" weight = 1 [[languages.en.menu.main]] parent = "Resources" name = "KubeCon & QCon" - URL = "conferences" + URL = "conferences/" weight = 2 [[languages.en.menu.main]] parent = "Resources" name = "Technology Blogs" - URL = "blogs" + URL = "blogs/" weight = 3 [[languages.en.menu.main]] parent = "Resources" name = "Video Resources" - URL = "videos" + URL = "videos/" weight = 4 [[languages.en.menu.main]] @@ -97,19 +97,19 @@ name = "Community" [[languages.en.menu.main]] parent = "Community" name = "Contribution" - URL = "contribution" + URL = "contribution/" weight = 1 [[languages.en.menu.main]] parent = "Community" name = "Case Studies" - URL = "case" + URL = "case/" weight = 2 [[languages.en.menu.main]] parent = "Community" name = "Partner" - URL = "partner" + URL = "partner/" weight = 3 [[languages.en.menu.main]] @@ -132,19 +132,19 @@ hasChildren = true [[languages.zh.menu.main]] parent = "应用场景" name = "拥抱一站式 DevOps 工作流" - URL = "devops" + URL = "devops/" weight = 2 [[languages.zh.menu.main]] parent = "应用场景" name = "在 Kubernetes 运行微服务" - URL = "service-mesh" + URL = "service-mesh/" weight = 4 [[languages.zh.menu.main]] parent = "应用场景" name = "构建丰富的云原生可观察性" - URL = "observability" + URL = "observability/" weight = 8 [[languages.zh.menu.main]] @@ -155,25 +155,25 @@ hasChildren = true [[languages.zh.menu.main]] parent = "资源" name = "开源项目" - URL = "projects" + URL = "projects/" weight = 1 [[languages.zh.menu.main]] parent = "资源" name = "开源峰会" - URL = "conferences" + URL = "conferences/" weight = 2 [[languages.zh.menu.main]] parent = "资源" name = "技术博客" - URL = "blogs" + URL = "blogs/" weight = 3 [[languages.zh.menu.main]] parent = "资源" name = "视频资源" - URL = "videos" + URL = "videos/" weight = 4 [[languages.zh.menu.main]] @@ -188,19 +188,19 @@ name = "开源社区" [[languages.zh.menu.main]] parent = "开源社区" name = "参与贡献" - URL = "contribution" + URL = "contribution/" weight = 1 [[languages.zh.menu.main]] parent = "开源社区" name = "案例学习" - URL = "case" + URL = "case/" weight = 2 [[languages.zh.menu.main]] parent = "开源社区" name = "合作伙伴" - URL = "partner" + URL = "partner/" weight = 3 [[languages.zh.menu.main]] diff --git a/content/en/_index.md b/content/en/_index.md index 894537942..86342a99c 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -102,19 +102,19 @@ section4: - name: Service Mesh (Istio-based) icon: /images/home/service.svg content: Provide fine-grained traffic management, observability and tracing, and offer visualization for traffic topology - link: "service-mesh" + link: "service-mesh/" color: red - name: Rich Observability icon: /images/home/rich.svg content: Multi-dimensional monitoring, events and audit logs query are supported; multi-tenant log query and collection, alerting and notification are built-in - link: "observability" + link: "observability/" color: green - name: DevOps System icon: /images/home/dev-ops.svg content: Out-of-box CI/CD based on Jenkins, and automated workflow tools including Source-to-Image & Binary-to-Image - link: "devops" + link: "devops/" color: orange - name: Multiple Storage Solutions @@ -158,7 +158,7 @@ section5: section6: title: End User Community - content: Tons of enterprises and organizations are using KubeSphere Container Platform for research, production and their commercial products.
The Case Studies list more detailed user cases and their cloud native transformation stories. + content: Tons of enterprises and organizations are using KubeSphere Container Platform for research, production and their commercial products.
The Case Studies list more detailed user cases and their cloud native transformation stories. children: - icon: /images/home/section6-anchnet.jpg - icon: /images/home/section6-aqara.jpg @@ -177,11 +177,11 @@ section6: - icon: /images/home/section6-yiliu.jpg btnContent: Case Studies - btnLink: case + btnLink: case/ link: mailto:kubesphere@gmail.com linkContent: Want to join our user community and showcase your logo? Just send an email to kubesphere@gmail.com joinTitle: Join the Revolution, Partner with KubeSphere joinContent: We look forward to your joining KubeSphere partner program to improve both ecosystems and grow your business. - joinLink: partner + joinLink: partner/ image: /images/home/certification.jpg --- diff --git a/content/zh/_index.md b/content/zh/_index.md index bf90d4588..1d2b24cb8 100644 --- a/content/zh/_index.md +++ b/content/zh/_index.md @@ -102,19 +102,19 @@ section4: - name: 基于 Istio 的微服务治理 icon: /images/home/service.svg content: 提供细粒度的流量管理、流量监控、灰度发布、分布式追踪,支持可视化的流量拓扑 - link: "service-mesh" + link: "service-mesh/" color: red - name: 丰富的可观察性 icon: /images/home/rich.svg content: 提供多维度与多租户的监控、日志、事件、审计搜索,支持多种告警策略与通知渠道,支持日志转发 - link: "observability" + link: "observability/" color: green - name: DevOps 系统 icon: /images/home/dev-ops.svg content: 基于 Jenkins 为引擎打造的 CI/CD,内置 Source-to-Image 和 Binary-to-Image 自动化打包部署工具 - link: "devops" + link: "devops/" color: orange - name: 支持多种存储方案 @@ -158,7 +158,7 @@ section5: section6: title: 用户社区 - content: 已有来自全球的大量知名企业与组织将 KubeSphere 容器平台广泛应用在科研、生产环境以及他们的商业产品中,
点击 案例学习 查看更详细的典型用户的实践案例文章。 + content: 已有来自全球的大量知名企业与组织将 KubeSphere 容器平台广泛应用在科研、生产环境以及他们的商业产品中,
点击 案例学习 查看更详细的典型用户的实践案例文章。 children: - icon: /images/home/section6-anchnet.jpg - icon: /images/home/section6-aqara.jpg @@ -177,11 +177,11 @@ section6: - icon: /images/home/section6-yiliu.jpg btnContent: 案例学习 - btnLink: case + btnLink: case/ link: mailto:kubesphere@gmail.com linkContent: 希望加入用户社区并在 KubeSphere 官网展示您的 Logo?请邮件至 kubesphere@gmail.com joinTitle: 加入 KubeSphere 社区合作伙伴计划 joinContent: 我们非常期待您加入 KubeSphere 社区合作伙伴计划,共同完善各自的生态,加速您的业务增长。 - joinLink: partner + joinLink: partner/ image: /images/home/certification.jpg --- diff --git a/data/en/footer.yaml b/data/en/footer.yaml index 0c4927f1c..c44ff58b5 100644 --- a/data/en/footer.yaml +++ b/data/en/footer.yaml @@ -3,13 +3,13 @@ footer: - title: Scenarios list: - content: Embrace DevOps - link: devops + link: devops/ - content: Microservices on K8s - link: service-mesh + link: service-mesh/ - content: Cloud Native Observability - link: observability + link: observability/ - content: Bare Metal LoadBalancer link: 'https://porterlb.io/' @@ -25,13 +25,13 @@ footer: - title: Resources list: - content: Projects - link: projects + link: projects/ - content: Blogs - link: blogs + link: blogs/ - content: KubeCon & QCon - link: conferences + link: conferences/ - content: Videos - link: videos + link: videos/ - title: KubeSphere Docs list: @@ -47,11 +47,11 @@ footer: - title: Community list: - content: Contribution - link: contribution + link: contribution/ - content: Case Studies - link: case + link: case/ - content: Partners - link: partner + link: partner/ - content: Roadmap link: https://github.com/kubesphere/kubesphere/blob/master/docs/roadmap.md - content: China Site diff --git a/data/zh/footer.yaml b/data/zh/footer.yaml index c316b09f9..6a2b66d43 100644 --- a/data/zh/footer.yaml +++ b/data/zh/footer.yaml @@ -3,13 +3,13 @@ footer: - title: 应用场景 list: - content: 拥抱一站式 DevOps - link: devops + link: devops/ - content: 在 K8s 运行微服务 - link: service-mesh + link: service-mesh/ - content: 构建云原生可观察性 - link: observability + link: observability/ - content: 物理机 K8s 暴露服务 link: 'https://porterlb.io' @@ -26,13 +26,13 @@ footer: - title: 资源 list: - content: 开源项目 - link: projects + link: projects/ - content: 技术博客 - link: blogs + link: blogs/ - content: 开源峰会 - link: conferences + link: conferences/ - content: 视频资源 - link: videos + link: videos/ - title: 文档中心 list: @@ -50,9 +50,9 @@ footer: - content: 参与贡献 link: contribution - content: 案例学习 - link: case + link: case/ - content: 合作伙伴 - link: partner + link: partner/ - content: 版本计划 link: https://github.com/kubesphere/kubesphere/blob/master/docs/roadmap.md - content: 中国站 diff --git a/i18n/en.yaml b/i18n/en.yaml index 9c2d249e3..e03caa44a 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -42,3 +42,15 @@ translation: We can’t find the page that you’re looking for :( - id: Go To Home translation: Go To Home +- id: icon + translation: icon +- id: background image + translation: background image +- id: background image + translation: background image +- id: kubesphere console screenshot + translation: kubesphere console screenshot + + + + diff --git a/i18n/zh.yaml b/i18n/zh.yaml index 88af16f1f..82c6f94e3 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -42,3 +42,9 @@ translation: We can’t find the page that you’re looking for :( - id: Go To Home translation: Go To Home +- id: icon + translation: 图标 +- id: background image + translation: 背景图片 +- id: kubesphere console screenshot + translation: kubesphere console 截图 \ No newline at end of file diff --git a/layouts/404.html b/layouts/404.html index 093beb940..1fe92e336 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,9 +1,9 @@ {{ define "main" }}
- - + icon + background image - + {{ .title }} {{ end }} @@ -45,8 +45,8 @@
{{ with .Params.section3 }} - - + {{ i18n + {{ i18n
@@ -42,7 +42,7 @@ {{ $name := .name }} {{ range .children }}
  • - + {{ .name }}
  • {{ end }} {{ end }} @@ -51,7 +51,7 @@

    {{ .content }} {{ .linkContent }}

    {{ end }} - + {{ i18n {{ end }}