Skip to content

Commit

Permalink
Layout cleanup in preparation of title format change (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Mar 7, 2022
1 parent 1368885 commit da9ad98
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 33 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<head>
{{ partial "meta.html" . }}
<title>
{{ block "title" . }}
{{ site.Title }}
{{ block "title" . -}}
{{ site.Title }} | {{ .Title -}}
{{ end }}
</title>
{{ partial "css.html" . }}
Expand Down
4 changes: 0 additions & 4 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{{ define "title" }}
{{ site.Title }} | {{ .Title }}
{{ end }}

{{ define "main" }}
{{ partial "hero.html" . }}
{{ partial "content.html" . }}
Expand Down
12 changes: 4 additions & 8 deletions layouts/blog/list.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{{ define "title" }}
{{ site.Title }} | {{ .Title }}
{{ end }}

{{ define "main" }}
{{ partial "blog/list-hero.html" . }}
{{ partial "blog/posts.html" . }}
{{ end }}
{{ define "main" -}}
{{ partial "blog/list-hero.html" . }}
{{ partial "blog/posts.html" . }}
{{ end -}}
10 changes: 3 additions & 7 deletions layouts/docs/list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{{ define "title" }}
{{ site.Title }} | {{ .Title }}
{{ end }}

{{ define "main" }}
{{ partial "article.html" . }}
{{ end }}
{{ define "main" -}}
{{ partial "article.html" . }}
{{ end -}}
10 changes: 3 additions & 7 deletions layouts/docs/single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{{ define "title" }}
{{ site.Title }} | {{ .Title }}
{{ end }}

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

Expand All @@ -17,4 +17,4 @@

{{ partial "home/get-involved.html" . }}
{{ partial "home/cncf.html" . }}
{{ end }}
{{ end -}}
3 changes: 1 addition & 2 deletions layouts/partials/home/hero.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ $logo := printf "img/logos/%s" site.Params.logos.hero | relURL }}
{{ $title := site.Title }}
{{ $desc := site.Params.description | markdownify }}
{{ $btns := site.Menus.buttons }}
{{ $sect := .Section }}
Expand All @@ -9,7 +8,7 @@
<div class="container">
<div class="columns is-vcentered is-variable is-8">
<div class="column is-one-third">
<img class="is-hero-logo" src="{{ $logo }}" alt="{{ $title }} home hero logo">
<img class="is-hero-logo" src="{{ $logo }}" alt="{{ site.Title }} home hero logo">
</div>

<div class="column">
Expand Down
1 change: 0 additions & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{ $home := site.BaseURL }}
{{ $here := .RelPermalink }}
{{ $title := site.Title }}
{{ $logo := site.Params.logos.navbar }}
{{ $menu := site.Menus.main }}
{{ $docs := site.Menus.docs }}
Expand Down

0 comments on commit da9ad98

Please sign in to comment.