Skip to content

Commit

Permalink
Add Chinese placeholder content
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <lucperkins@gmail.com>
  • Loading branch information
lucperkins committed Jul 23, 2019
1 parent 5abe864 commit 89f6a6c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
3 changes: 2 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ disableKinds: ["taxonomy", "taxonomyTerm"]
pygmentsCodefences: true
pygmentsStyle: monokai
defaultContentLanguage: en
disableLanguages: [zh]

languages:
en:
Expand Down Expand Up @@ -88,7 +89,7 @@ languages:
# Button text
buttontext: Get started
sectionAbout:
title: About Falco.
title: About Falco. (in chinese!)
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.
Expand Down
3 changes: 3 additions & 0 deletions content/zh/docs/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Falco Chinese documentation
---
4 changes: 4 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
integrations_and_platforms:
other: Integrations & Platforms
copyright:
other: Copyright
falco_authors:
other: The Falco authors
4 changes: 4 additions & 0 deletions i18n/zh.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
integrations_and_platforms:
other: Integrations & Platforms
copyright:
other: Copyright
falco_authors:
other: The Falco authors
2 changes: 1 addition & 1 deletion themes/falco-fresh/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ if $isHome }}<div class="container">{{ end }}
<div class="columns">
<div class="column">
Copyright {{ $year }}, The Falco authors
{{ T "copyright"}} {{ $year }}, {{ T "falco_authors"}}
</div>
</div>
{{ if $isHome }}</div>{{ end }}
Expand Down
13 changes: 7 additions & 6 deletions themes/falco-fresh/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{{- $navbar := .Site.Params.navbar }}
{{- $menu := .Site.Menus.navbar }}
{{- $cncf := index $navbar "cncf" }}
{{- $isHome := .IsHome }}
{{- $isDocs := eq .Section "docs" }}
{{- $navbar := .Site.Params.navbar }}
{{- $menu := .Site.Menus.navbar }}
{{- $cncf := index $navbar "cncf" }}
{{- $isHome := .IsHome }}
{{- $isDocs := eq .Section "docs" }}
{{- $baseUrl := printf "/%s" .Language }}
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
{{ if $isHome }}<div class="container">{{ end }}
<div class="navbar-brand">
<a class="navbar-item{{ if $isDocs }} is-hidden-tablet{{ end }}" href="{{ "/" | absURL }}">
<a class="navbar-item{{ if $isDocs }} is-hidden-tablet{{ end }}" href="{{ $baseUrl }}">
<img class="navbar-brand__logo" src="{{ "/images/logos/falco-logo.png" | absURL }}" alt="">
</a>

Expand Down

0 comments on commit 89f6a6c

Please sign in to comment.