mirror of https://github.com/grpc/grpc.io.git
Layout cleanup: factor out common title (#463)
No change in generated site.
This commit is contained in:
parent
8e37c7214d
commit
adb67b27be
|
|
@ -4,7 +4,11 @@
|
||||||
{{ partial "google-analytics.html" . }}
|
{{ partial "google-analytics.html" . }}
|
||||||
{{ partial "meta.html" . }}
|
{{ partial "meta.html" . }}
|
||||||
|
|
||||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
<title>
|
||||||
|
{{- block "title" . -}}
|
||||||
|
{{ .Title }} – {{ site.Title -}}
|
||||||
|
{{ end -}}
|
||||||
|
</title>
|
||||||
|
|
||||||
{{ partial "favicons.html" . }}
|
{{ partial "favicons.html" . }}
|
||||||
{{ partial "css.html" . }}
|
{{ partial "css.html" . }}
|
||||||
|
|
@ -13,8 +17,7 @@
|
||||||
<main class="is-main">
|
<main class="is-main">
|
||||||
{{ partial "navbar.html" . }}
|
{{ partial "navbar.html" . }}
|
||||||
{{ partial "banner.html" -}}
|
{{ partial "banner.html" -}}
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}{{ end }}
|
||||||
{{ end }}
|
|
||||||
</main>
|
</main>
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
{{ partial "javascript.html" . }}
|
{{ partial "javascript.html" . }}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
{{ define "title" -}}
|
|
||||||
{{ .Title }} – {{ site.Title -}}
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{ partial "hero.html" . -}}
|
{{ partial "hero.html" . -}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
{{ define "title" -}}
|
|
||||||
{{ .Title }} – {{ site.Title -}}
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{ partial "blog/list-hero.html" . }}
|
{{ partial "blog/list-hero.html" . }}
|
||||||
{{ partial "blog/posts.html" . -}}
|
{{ partial "blog/posts.html" . -}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
{{ define "title" -}}
|
|
||||||
{{ .Title }} – {{ site.Title -}}
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{ partial "blog/hero.html" . }}
|
{{ partial "blog/hero.html" . }}
|
||||||
{{ partial "blog/article.html" . -}}
|
{{ partial "blog/article.html" . -}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
{{ define "title" -}}
|
|
||||||
{{ .Title }} – {{ site.Title -}}
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{ partial "docs/article.html" . -}}
|
{{ partial "docs/article.html" . -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
{{ define "title" -}}
|
|
||||||
{{ .Title }} – {{ site.Title -}}
|
|
||||||
{{ end -}}
|
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
{{ partial "docs/article.html" . -}}
|
{{ partial "docs/article.html" . -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue