Skip to content
Snippets Groups Projects
Commit b09ea9e8 authored by Julien Schmidt's avatar Julien Schmidt
Browse files

allow setting the page title separately

parent afb0baf4
No related branches found
No related tags found
No related merge requests found
---
title: StuStaNet e.V.
header: StuStaNet e.V.
---
### Nächste Sprechstunden
......
---
title: StuStaNet e.V.
header: StuStaNet e.V.
---
### Next Office Hours
......
---
title: StuStaNet e.V.
title: Verein
header: StuStaNet e.V.
description: Information über den StuStaNet e. V. in der Studentenstadt Freimann, München
type: page
color: green
......
---
title: StuStaNet e.V.
title: About Us
header: StuStaNet e.V.
description: Information about StuStaNet in Studentenstadt Freiman, Munich, Germany
type: page
color: green
......
---
title: Mitmachen
header: Mitmachen
description: Mitmachen beim StuStaNet
type: page
color: red
......
---
title: Participate
header: Participate
description: Participating at StuStaNet
type: page
color: red
aliases: [ "/participate/" ]
---
yo, participate!
\ No newline at end of file
yo, participate!
......@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
{{ if .Params.Description }}
<meta name="description" content="{{ .Params.Description }}" />
{{ end }}
......@@ -82,8 +82,8 @@
<article>
<header class="{{ .Params.Color | default "blue" }}">
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<h1>{{ .Params.Header | default .Title }}</h1>
{{ with .Params.SubHeader }}
<span class="subtitle">{{.}}</span>
{{ end }}
</header>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment