More template cleanup

This commit is contained in:
Raoul 2018-04-30 04:01:47 +02:00
parent 8cc2ae00ee
commit 6d70469a72
No known key found for this signature in database
GPG key ID: C7493D73B67C1842
7 changed files with 16 additions and 28 deletions

View file

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang='{{ .Site.Language.Lang | default "de" }}'> <html lang='{{ .Site.Language.Lang }}'>
<head> <head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ with .Title }} | {{ . }}{{ end }}{{ end }}</title> <title>{{ .Site.Title }} | {{ .Page.Title }}</title>
<meta charset="utf-8"> <meta charset="utf-8">
{{ .Hugo.Generator }} {{ .Hugo.Generator }}
@ -10,27 +10,23 @@
</head> </head>
<body> <body>
{{ block "header" . }} {{ partial "site-header.html" . }} {{ end }} {{ block "header" . }} {{ partial "site-header.html" . }} {{ end }}
{{ block "menu" . }} {{ partial "site-menu.html" . }} {{ end }} {{ block "menu" . }} {{ partial "site-menu.html" . }} {{ end }}
<div id="content"> <div id="content">
{{ block "sidebar" . }} {{ if eq .Site.Language.Lang "de" }}
{{ if eq .Site.Language.Lang "de" }} {{ partial "site-sidebar.de.html" . }}
{{ partial "site-sidebar.de.html" . }} {{ else if eq .Site.Language.Lang "fr" }}
{{ else if eq .Site.Language.Lang "fr" }} {{ partial "site-sidebar.fr.html" . }}
{{ partial "site-sidebar.fr.html" . }} {{ else if eq .Site.Language.Lang "it" }}
{{ else if eq .Site.Language.Lang "it" }} {{ partial "site-sidebar.it.html" . }}
{{ partial "site-sidebar.it.html" . }} {{ else if eq .Site.Language.Lang "en" }}
{{ else if eq .Site.Language.Lang "en" }} {{ partial "site-sidebar.en.html" . }}
{{ partial "site-sidebar.en.html" . }}
{{ end }}
{{ end }} {{ end }}
{{ block "main" . }} {{ end }} {{ block "main" . }} {{ end }}
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
{{ block "footer" . }} {{ partial "site-footer.html" . }} {{ end }} {{ block "footer" . }} {{ partial "site-footer.html" . }} {{ end }}
</body> </body>
</html> </html>

View file

@ -1,11 +1,7 @@
{{ define "main" }} {{ define "main" }}
<div class="right"> <div class="right">
<article> <article>
<header> {{ .Content }}
</header>
<div>
{{ .Content }}
</div>
</article> </article>
</div> </div>
{{ end }} {{ end }}

View file

@ -1,11 +1,7 @@
{{ define "main" }} {{ define "main" }}
<div class="right"> <div class="right">
<article> <article>
<header> {{ .Content }}
</header>
<div>
{{ .Content }}
</div>
</article> </article>
</div> </div>
{{ end }} {{ end }}

View file

@ -9,4 +9,4 @@
<p> <p>
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni. Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
</p> </p>
{{ end}} {{ end }}

View file

@ -9,4 +9,4 @@
<p> <p>
Schedule of this year's CoSin will be online in early June. Schedule of this year's CoSin will be online in early June.
</p> </p>
{{ end}} {{ end }}

View file

@ -9,4 +9,4 @@
<p> <p>
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni. Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
</p> </p>
{{ end}} {{ end }}

View file

@ -9,4 +9,4 @@
<p> <p>
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni. Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
</p> </p>
{{ end}} {{ end }}