More template cleanup
This commit is contained in:
parent
8cc2ae00ee
commit
6d70469a72
7 changed files with 16 additions and 28 deletions
|
@ -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>
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
{{ define "main" }}
|
||||
<div class="right">
|
||||
<article>
|
||||
<header>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
{{ define "main" }}
|
||||
<div class="right">
|
||||
<article>
|
||||
<header>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
</p>
|
||||
{{ end}}
|
||||
{{ end }}
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
<p>
|
||||
Schedule of this year's CoSin will be online in early June.
|
||||
</p>
|
||||
{{ end}}
|
||||
{{ end }}
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
</p>
|
||||
{{ end}}
|
||||
{{ end }}
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
<p>
|
||||
Der Fahrplan für die diesjährige CoSin erscheint Anfang Juni.
|
||||
</p>
|
||||
{{ end}}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue