From 5abe8648f12cbb283a78a31f5ab68ec467572879 Mon Sep 17 00:00:00 2001 From: lucperkins Date: Tue, 23 Jul 2019 11:02:39 -0700 Subject: [PATCH] Make front page translation ready Signed-off-by: lucperkins --- config.yaml | 194 ++++++++++++------ i18n/en.yaml | 2 + i18n/zh.yaml | 2 + .../layouts/partials/hero-body.html | 13 +- .../layouts/partials/hero-footer.html | 4 +- .../falco-fresh/layouts/partials/navbar.html | 6 +- .../layouts/partials/section-about.html | 6 +- 7 files changed, 152 insertions(+), 75 deletions(-) diff --git a/config.yaml b/config.yaml index 78c787cda..aeb1695ff 100644 --- a/config.yaml +++ b/config.yaml @@ -10,9 +10,141 @@ languages: en: title: Falco — Container-native Runtime Security contentDir: content/en + params: + heroText: + # Main hero title + title: Container Native Runtime Security + # Hero subtitle (optional) + subtitle: Falco is an open source project for intrusion and abnormality detection for Cloud Native platforms such as Kubernetes, Mesosphere, and Cloud Foundry. Detect abnormal application behavior. Alert via Slack, Fluentd, NATS, and more. Protect your platform by taking action through serverless (FaaS) frameworks, or other automation. + # Button text + buttontext: Get started + sectionAbout: + title: About Falco. + summary: With more responsibility shifting left to developers and the opaque nature of containers, organizations require deeper insight into container activities. The Falco project was hatched to understand container behavior and protect your platform from possible malicious activity. Leveraging Sysdig’s open source Linux kernel instrumentation, Falco gains deep insight into system behavior. The rules engine can then detect abnormal activity in applications, containers, the underlying host, and the container platform. + section1: + title: Key Features. + subtitle: + tiles: + - title: Platform Aware + icon: check.png + text: Build rules specific to your Cloud Native platforms to enforce policy across all your containers & microservices. + - title: Container-native + icon: box.png + text: Runtime Security built for containers. Built from the ground up to natively support containerized applications. + - title: Deep Visibility + icon: scalable.png + text: Complete container visibility through a single sensor. Gain insight into application and container behavior. + section2: + title: Downloads + Resources. + subtitle: Get started today, contribute to the open source project, & learn more. + resources: + - title: Contribute + text: Jump over to our GitHub page to contribute to our open source ecosystem. + # Icon (from /images/illustrations/icons/___.svg) + icon: group.png + buttonText: Falco Github + buttonLink: https://github.com/falcosecurity/falco + - title: Download + text: Get started with our Falco installation guide. + icon: download.png + buttonText: Falco Install Guide + buttonLink: /docs/installation + - title: Documentation + text: In the official docs, you can find information about [installing Falco](/docs/installation), [configuration options](/docs/configuration), and writing [custom rules](/docs/rules). + icon: documentation-2.png + buttonText: /docs + buttonLink: /docs + - title: Connect + text: Join our Slack team to interact with other users and developers. + icon: chat.png + buttonText: Falco Slack + buttonLink: https://slack.sysdig.com + section3: + title: Stay up to date. + subtitle: Sign-up for project updates. + buttonText: Sign-up! + menu: + navbar: + - name: About + url: "/#about" + weight: 1 + - name: Features + url: "/#features" + weight: 2 + - name: Download + url: "/#download" + - name: Docs + url: /docs + weight: 3 zh: title: Falco — Container-native Runtime Security contentDir: content/zh + params: + heroText: + # Main hero title + title: Container Native Runtime Security + # Hero subtitle (optional) + subtitle: Falco is an open source project for intrusion and abnormality detection for Cloud Native platforms such as Kubernetes, Mesosphere, and Cloud Foundry. Detect abnormal application behavior. Alert via Slack, Fluentd, NATS, and more. Protect your platform by taking action through serverless (FaaS) frameworks, or other automation. + # Button text + buttontext: Get started + sectionAbout: + title: About Falco. + summary: With more responsibility shifting left to developers and the opaque nature of containers, organizations require deeper insight into container activities. The Falco project was hatched to understand container behavior and protect your platform from possible malicious activity. Leveraging Sysdig’s open source Linux kernel instrumentation, Falco gains deep insight into system behavior. The rules engine can then detect abnormal activity in applications, containers, the underlying host, and the container platform. + section1: + title: Key Features. + subtitle: + tiles: + - title: Platform Aware + icon: check.png + text: Build rules specific to your Cloud Native platforms to enforce policy across all your containers & microservices. + - title: Container-native + icon: box.png + text: Runtime Security built for containers. Built from the ground up to natively support containerized applications. + - title: Deep Visibility + icon: scalable.png + text: Complete container visibility through a single sensor. Gain insight into application and container behavior. + section2: + title: Downloads + Resources. + subtitle: Get started today, contribute to the open source project, & learn more. + resources: + - title: Contribute + text: Jump over to our GitHub page to contribute to our open source ecosystem. + # Icon (from /images/illustrations/icons/___.svg) + icon: group.png + buttonText: Falco Github + buttonLink: https://github.com/falcosecurity/falco + - title: Download + text: Get started with our Falco installation guide. + icon: download.png + buttonText: Falco Install Guide + buttonLink: /docs/installation + - title: Documentation + text: In the official docs, you can find information about [installing Falco](/docs/installation), [configuration options](/docs/configuration), and writing [custom rules](/docs/rules). + icon: documentation-2.png + buttonText: /docs + buttonLink: /docs + - title: Connect + text: Join our Slack team to interact with other users and developers. + icon: chat.png + buttonText: Falco Slack + buttonLink: https://slack.sysdig.com + section3: + title: Stay up to date. + subtitle: Sign-up for project updates. + buttonText: Sign-up! + menu: + navbar: + - name: About + url: "/#about" + weight: 1 + - name: Features + url: "/#features" + weight: 2 + - name: Download + url: "/#download" + - name: Docs + url: /docs + weight: 3 params: version: v0.16.0 @@ -23,12 +155,6 @@ params: secondaryFont: name: "MaaxMono" hero: - # Main hero title - title: Container Native Runtime Security - # Hero subtitle (optional) - subtitle: Falco is an open source project for intrusion and abnormality detection for Cloud Native platforms such as Kubernetes, Mesosphere, and Cloud Foundry. Detect abnormal application behavior. Alert via Slack, Fluentd, NATS, and more. Protect your platform by taking action through serverless (FaaS) frameworks, or other automation. - # Button text - buttontext: Get started # Where the main hero button links to buttonlink: "#download" # Hero image (from /images/___) @@ -59,58 +185,4 @@ params: logo: cncf-black.svg cncfLink: https://cncf.io level: Sandbox - levelLink: https://github.com/cncf/toc/blob/master/process/sandbox.md - menu: - - title: About - url: "/#about" - - title: Features - url: "/#features" - - title: Download - url: "/#download" - - title: Docs - url: /docs - sectionAbout: - title: About Falco. - summary: With more responsibility shifting left to developers and the opaque nature of containers, organizations require deeper insight into container activities. The Falco project was hatched to understand container behavior and protect your platform from possible malicious activity. Leveraging Sysdig’s open source Linux kernel instrumentation, Falco gains deep insight into system behavior. The rules engine can then detect abnormal activity in applications, containers, the underlying host, and the container platform. - section1: - title: Key Features. - subtitle: - tiles: - - title: Platform Aware - icon: check.png - text: Build rules specific to your Cloud Native platforms to enforce policy across all your containers & microservices. - - title: Container-native - icon: box.png - text: Runtime Security built for containers. Built from the ground up to natively support containerized applications. - - title: Deep Visibility - icon: scalable.png - text: Complete container visibility through a single sensor. Gain insight into application and container behavior. - section2: - title: Downloads + Resources. - subtitle: Get started today, contribute to the open source project, & learn more. - resources: - - title: Contribute - text: Jump over to our GitHub page to contribute to our open source ecosystem. - # Icon (from /images/illustrations/icons/___.svg) - icon: group.png - buttonText: Falco Github - buttonLink: https://github.com/falcosecurity/falco - - title: Download - text: Get started with our Falco installation guide. - icon: download.png - buttonText: Falco Install Guide - buttonLink: /docs/installation - - title: Documentation - text: In the official docs, you can find information about [installing Falco](/docs/installation), [configuration options](/docs/configuration), and writing [custom rules](/docs/rules). - icon: documentation-2.png - buttonText: /docs - buttonLink: /docs - - title: Connect - text: Join our Slack team to interact with other users and developers. - icon: chat.png - buttonText: Falco Slack - buttonLink: https://slack.sysdig.com - section3: - title: Stay up to date. - subtitle: Sign-up for project updates. - buttonText: Sign-up! + levelLink: https://github.com/cncf/toc/blob/master/process/sandbox.md diff --git a/i18n/en.yaml b/i18n/en.yaml index e69de29bb..721345847 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -0,0 +1,2 @@ +integrations_and_platforms: + other: Integrations & Platforms diff --git a/i18n/zh.yaml b/i18n/zh.yaml index e69de29bb..721345847 100644 --- a/i18n/zh.yaml +++ b/i18n/zh.yaml @@ -0,0 +1,2 @@ +integrations_and_platforms: + other: Integrations & Platforms diff --git a/themes/falco-fresh/layouts/partials/hero-body.html b/themes/falco-fresh/layouts/partials/hero-body.html index 9b8dfe3a9..c860c5e85 100644 --- a/themes/falco-fresh/layouts/partials/hero-body.html +++ b/themes/falco-fresh/layouts/partials/hero-body.html @@ -1,9 +1,10 @@ {{- $hero := .Site.Params.hero }} -{{- $title := index $hero "title" }} -{{- $subtitle := index $hero "subtitle" }} -{{- $buttonText := index $hero "buttontext" }} -{{- $buttonLink := index $hero "buttonlink" }} -{{- $image := index $hero "image" }} +{{- $heroText := .Site.Params.heroText }} +{{- $title := $heroText.title }} +{{- $subtitle := $heroText.subtitle }} +{{- $buttonText := $heroText.buttontext }} +{{- $buttonLink := $hero.buttonlink }} +{{- $image := $hero.image }}
@@ -41,4 +42,4 @@

- \ No newline at end of file + diff --git a/themes/falco-fresh/layouts/partials/hero-footer.html b/themes/falco-fresh/layouts/partials/hero-footer.html index 4a1326c6e..ecdea7fb5 100644 --- a/themes/falco-fresh/layouts/partials/hero-footer.html +++ b/themes/falco-fresh/layouts/partials/hero-footer.html @@ -3,7 +3,7 @@
-

Integrations & Platforms

+

{{ T "integrations_and_platforms" }}

    {{- range $clientLogos }} @@ -13,4 +13,4 @@

    Integrations & Platforms

    {{- end }}
-
\ No newline at end of file + diff --git a/themes/falco-fresh/layouts/partials/navbar.html b/themes/falco-fresh/layouts/partials/navbar.html index d3c5be84f..fc64e4aa0 100644 --- a/themes/falco-fresh/layouts/partials/navbar.html +++ b/themes/falco-fresh/layouts/partials/navbar.html @@ -1,5 +1,5 @@ {{- $navbar := .Site.Params.navbar }} -{{- $menu := index $navbar "menu"}} +{{- $menu := .Site.Menus.navbar }} {{- $cncf := index $navbar "cncf" }} {{- $isHome := .IsHome }} {{- $isDocs := eq .Section "docs" }} @@ -20,8 +20,8 @@ - \ No newline at end of file +