Skip to content

Commit

Permalink
feat: add keywords logic to head.html
Browse files Browse the repository at this point in the history
Signed-off-by: Bulat Safiullin <bulat.safiullin@akvelon.com>
  • Loading branch information
bullet03 authored and poiana committed Apr 3, 2023
1 parent 8095159 commit 973298f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/en/about/falco.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: What is Falco
keywords: Falco, Runtime security, Threat detection and response
---

{{< blocks/content wrap="col" >}}
Expand Down
1 change: 1 addition & 0 deletions content/en/about/use-cases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Falco use cases
keywords: Host, container, Kubernetes and cloud security
---

{{< blocks/content wrap="col" >}}
Expand Down
1 change: 1 addition & 0 deletions content/en/about/why-falco.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Why Falco?
keywords: Scalable, performant, customizable, flexible deployment, single language policy
---

{{< blocks/content wrap="col" >}}
Expand Down
4 changes: 4 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end -}}

{{ if .Params.keywords }}
<meta name="keywords" content="{{ range .Params.keywords }}{{ . }}{{ end }}">
{{ end }}

{{ $outputFormat := partial "outputformat.html" . -}}
{{ if and hugo.IsProduction (ne $outputFormat "print") -}}
<meta name="robots" content="index, follow">
Expand Down

0 comments on commit 973298f

Please sign in to comment.