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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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