Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make HTML titles consistent: "<page-title> | KEDA" #700

Merged
merged 1 commit into from
Mar 7, 2022
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
14 changes: 5 additions & 9 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
{{ $lang := site.LanguageCode }}
<!DOCTYPE html>
<html{{ with $lang }} lang="{{ . }}"{{ end }}>
<html{{ with site.LanguageCode }} lang="{{ . }}"{{ end }}>
<head>
{{ partial "meta.html" . }}
<title>
{{ block "title" . -}}
{{ site.Title }} | {{ .Title -}}
{{ end }}
{{- block "title" . -}}
{{ .Title }} | {{ site.Title -}}
{{ end -}}
</title>
{{ partial "css.html" . }}
{{ partial "favicon.html" . }}
</head>

<body class="is-page has-navbar-fixed-top">
<main class="is-main">
{{ partial "navbar.html" . }}
{{ block "main" . }}
{{ end }}
{{ block "main" . }}{{ end }}
</main>

{{ partial "footer.html" . }}
{{ partial "javascript.html" . }}
</body>
Expand Down
8 changes: 2 additions & 6 deletions layouts/blog/single.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ define "title" }}
The KEDA Blog | {{ .Title }}
{{ end }}

{{ define "main" }}
{{ define "main" -}}
{{ partial "blog/post-hero.html" . }}
{{ partial "blog/article.html" . }}
{{ end }}
{{ end -}}
30 changes: 15 additions & 15 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{{ define "title" -}}
{{ site.Title }} | {{ site.Params.tagline }}
{{ site.Title }} | {{ site.Params.tagline -}}
{{ end }}

{{ define "main" }}
{{ partial "home/hero.html" . }}
{{ partial "home/what-is.html" . }}
{{ partial "home/features.html" . }}
{{ partial "home/video.html" . }}
{{ partial "home/scalers.html" . }}
{{ partial "home/samples.html" . }}
{{ partial "logo-section.html" (dict "title" "Users" "description" "A variety of users are autoscaling applications with KEDA:" "logos" site.Params.users) }}
<hr />
{{ partial "logo-section.html" (dict "title" "Partners" "description" "KEDA is supported by and built by our community, including the following companies:" "logos" site.Params.partners) }}
<hr />
{{ partial "logo-section.html" (dict "title" "Supported by" "description" "KEDA is supported by the following companies that provide their services for free:" "logos" site.Params.supportedby) }}
{{ define "main" -}}
{{ partial "home/hero.html" . }}
{{ partial "home/what-is.html" . }}
{{ partial "home/features.html" . }}
{{ partial "home/video.html" . }}
{{ partial "home/scalers.html" . }}
{{ partial "home/samples.html" . }}
{{ partial "logo-section.html" (dict "title" "Users" "description" "A variety of users are autoscaling applications with KEDA:" "logos" site.Params.users) }}
<hr />
{{ partial "logo-section.html" (dict "title" "Partners" "description" "KEDA is supported by and built by our community, including the following companies:" "logos" site.Params.partners) }}
<hr />
{{ partial "logo-section.html" (dict "title" "Supported by" "description" "KEDA is supported by the following companies that provide their services for free:" "logos" site.Params.supportedby) }}

{{ partial "home/get-involved.html" . }}
{{ partial "home/cncf.html" . }}
{{ partial "home/get-involved.html" . }}
{{ partial "home/cncf.html" . }}
{{ end -}}