Skip to content

Commit

Permalink
Make HTML titles consistent: "<page-title> | KEDA" (kedacore#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Mar 7, 2022
1 parent 33a1465 commit 37e739b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 30 deletions.
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 -}}

0 comments on commit 37e739b

Please sign in to comment.