Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/on-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
cd $(mktemp -d)

# hugo
scurl -O https://github.com/gohugoio/hugo/releases/download/v0.156.0/hugo_0.156.0_linux-amd64.deb
scurl -O https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_0.158.0_linux-amd64.deb
sudo dpkg -i hugo*.deb
rm hugo*.deb

Expand Down
9 changes: 5 additions & 4 deletions linkerd.io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Or download the release of Hugo from the GitHub

## Hugo version requirements

The minimum version of Hugo needed to build the site is `v0.156.0`.
The minimum version of Hugo needed to build the site is `v0.158.0`.

When linkerd.io is deployed to production, we use Hugo `v0.156.0`.
When linkerd.io is deployed to production, we use Hugo `v0.158.0`.

### Run Hugo locally

Expand Down Expand Up @@ -65,11 +65,12 @@ Next, create an `index.md` file in the folder with the following frontmatter:

```yaml
title: # The title of your blog post
description: # The description of your blog post
description: # Optional meta description of your blog post, defaults to auto generated content summary
date: # The date of your post in the format: `2024-01-01T00:00:00Z`
slug: # The URL slug for the page. Only set this param if you want to use a different slug than the title.
slug: # Optional URL slug for the page. Only set this param if you want to use a different slug than the title.
keywords: [] # An array of keywords are used to relate blog posts
params:
metaTitle: # Optional meta title of your blog post, defaults to title
author: # The author of the blog post
```

Expand Down
7 changes: 3 additions & 4 deletions linkerd.io/config/_default/params.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Min/max version of Hugo required to build linkerd.io
# Set `maxHugoVersion` to "latest" if there is not a max version required
minHugoVersion: "0.156.0"
maxHugoVersion: "latest"
minHugoVersion: '0.158.0'
maxHugoVersion: 'latest'

# Open Graph and Twitter Card defaults
description: |-
Linkerd is an ultralight service mesh for Kubernetes. It gives you
observability, reliability, and security without requiring any code changes.
#images: [/logos/linkerd.png]

# Set the value of `twitter:site` in Twitter Card
social:
twitter: Linkerd

# Latest major version of Linkerd
latestMajorVersion: "2.20"
latestMajorVersion: '2.20'
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
date: 2026-06-24T00:00:00Z
title: |-
Federating Clusters for Zero-Downtime Kubernetes
description: |-
Linkerd multicluster supports 3 modes: federated, flat, and gateway. Wire all 3 across 3 GKE clusters, run a chaos test, and see automatic failover in action.
keywords: [linkerd, multicluster, federated]
params:
metaTitle: |-
Linkerd Multicluster: Federation, Mirroring on GKE
author:
name: Dominik Táskai, Linkerd Ambassador
avatar: dominik-taskai.jpg
Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/layouts/_partials/head-meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<meta name="robots" content="noindex">
{{ end }}
<meta name=viewport content="width=device-width,initial-scale=1">
<meta name="description" content="{{ partial "page-description" . }}">
<meta name="description" content="{{ partial "meta-description" . }}">

{{ partial "opengraph.html" . }}
{{ partial "twitter_cards.html" . }}
{{ partial "head-opengraph.html" . }}
{{ partial "head-twitter-cards.html" . }}
76 changes: 76 additions & 0 deletions linkerd.io/layouts/_partials/head-opengraph.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{{- /*

Modified Open Graph template
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_partials/opengraph.html

*/}}
<meta property="og:url" content="{{ .Permalink }}">

{{- with or site.Title site.Params.title | plainify }}
<meta property="og:site_name" content="{{ . }}">
{{- end }}

<meta property="og:title" content="{{ partial "meta-title" . }}">

<meta property="og:description" content="{{ partial "meta-description" . }}">

{{- with or .Params.locale site.Language.Locale }}
<meta property="og:locale" content="{{ replace . `-` `_` }}">
{{- end }}

{{- if .IsPage }}
<meta property="og:type" content="article">
{{- with .Section }}
<meta property="article:section" content="{{ . }}">
{{- end }}
{{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
{{- with .PublishDate }}
<meta property="article:published_time" {{ .Format $ISO8601 | printf "content=%q" | safeHTMLAttr }}>
{{- end }}
{{- with .Lastmod }}
<meta property="article:modified_time" {{ .Format $ISO8601 | printf "content=%q" | safeHTMLAttr }}>
{{- end }}
{{- range .GetTerms "tags" | first 6 }}
<meta property="article:tag" content="{{ .Page.Title | plainify }}">
{{- end }}
{{- else }}
<meta property="og:type" content="website">
{{- end }}

{{- with partial "_funcs/get-page-images" . }}
{{- range . | first 6 }}
<meta property="og:image" content="{{ .Permalink }}">
{{- end }}
{{- end }}

{{- with .Params.audio }}
{{- range . | first 6 }}
<meta property="og:audio" content="{{ . | absURL }}">
{{- end }}
{{- end }}

{{- with .Params.videos }}
{{- range . | first 6 }}
<meta property="og:video" content="{{ . | absURL }}">
{{- end }}
{{- end }}

{{- range .GetTerms "series" }}
{{- range .Pages | first 7 }}
{{- if ne $ . }}
<meta property="og:see_also" content="{{ .Permalink }}">
{{- end }}
{{- end }}
{{- end }}

{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- with .facebook_app_id }}
<meta property="fb:app_id" content="{{ . }}">
{{- else }}
{{- with .facebook_admin }}
<meta property="fb:admins" content="{{ . }}">
{{- end }}
{{- end }}
{{- end }}
{{- end }}
30 changes: 30 additions & 0 deletions linkerd.io/layouts/_partials/head-twitter-cards.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{- /*

Modified Twitter Cards template
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_partials/twitter_cards.html

*/}}
{{- $images := partial "_funcs/get-page-images" . }}
{{- with index $images 0 }}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ .Permalink }}">
{{- else }}
<meta name="twitter:card" content="summary">
{{- end }}

<meta name="twitter:title" content="{{ partial "meta-title" . }}">

<meta name="twitter:description" content="{{ partial "meta-description" . }}">

{{- $twitterSite := "" }}
{{- with site.Params.social }}
{{- if reflect.IsMap . }}
{{- with .twitter }}
{{- $content := . }}
{{- if not (strings.HasPrefix . "@") }}
{{- $content = printf "@%v" . }}
{{- end }}
<meta name="twitter:site" content="{{ $content }}">
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions linkerd.io/layouts/_partials/meta-description.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- with or .Description .Summary site.Params.description | truncate 160 | plainify | htmlUnescape }}
{{- trim . "\n\r\t " | replaceRE "[\n\r\t]+" " " }}
{{- end -}}
3 changes: 3 additions & 0 deletions linkerd.io/layouts/_partials/meta-title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- with or .Params.metaTitle .Title site.Title site.Params.title | plainify }}
{{- . }}
{{- end -}}
3 changes: 0 additions & 3 deletions linkerd.io/layouts/_partials/page-description.html

This file was deleted.

2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish = "public"
command = "make production-build"

[build.environment]
HUGO_VERSION = "0.156.0"
HUGO_VERSION = "0.158.0"

[context.deploy-preview]
command = "make preview-build"
Expand Down
Loading