General improvements
parent
2af206caf9
commit
e17269bc14
|
@ -1,6 +1,6 @@
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
<div id="content">
|
<div id="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "recentnews.html" . }}
|
{{- partial "recentnews.html" . -}}
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . -}}
|
||||||
|
|
|
@ -1,61 +1,48 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="{{ .Language }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
<title>{{ .Title }} - {{ .Site.Title }}</title>
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/kozmo-dark.css">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/kozmo-dark.css">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}{{ .Site.Params.custom_css }}">
|
<link rel="stylesheet" href="{{ .Site.BaseURL }}{{ .Site.Params.custom_css }}">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator -}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ if isset .Site.Params "mathjax"}}
|
{{ if isset .Site.Params "mathjax"}}
|
||||||
<script type="text/javascript" src="{{ .Site.Params.mathjax }}">
|
<script type="text/javascript" src="{{ .Site.Params.mathjax }}">
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{ end }}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
|
||||||
<div id="header-left">
|
<div id="header-left">
|
||||||
|
{{ if isset .Site.Params "logoimage" -}}
|
||||||
{{ if isset .Site.Params "logoimage" }}
|
|
||||||
<div id="site-logo">
|
<div id="site-logo">
|
||||||
<a href="{{ .Site.BaseURL }}"><img alt="Site logo" src="{{ .Site.BaseURL }}{{ .Site.Params.logoimage }}"></a>
|
<a href="{{ .Site.BaseURL }}"><img alt="Site logo" src="{{ .Site.BaseURL }}{{ .Site.Params.logoimage }}"></a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end -}}
|
||||||
|
<div id="site-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></div>
|
||||||
<div id="site-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></div>
|
<div id="site-slogan">{{ .Site.Params.Description }}</div>
|
||||||
<div id="site-slogan">{{ .Site.Params.Description }}</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="header-right">
|
<div id="header-right">
|
||||||
{{ if .IsTranslated }}
|
{{- if .IsTranslated }}
|
||||||
<ul class="language-selector">
|
<ul class="language-selector">
|
||||||
<li>
|
<li>
|
||||||
<a class="selected">{{ .Language.LanguageName }}</a>
|
<a class="selected">{{ .Language.LanguageName }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ range .Translations }}
|
{{- range .Translations }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end}}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
</div>
|
||||||
|
{{ partial "menu.html" . -}}
|
||||||
|
{{- if isset .Params "image" }}
|
||||||
|
<div id="featured-image">
|
||||||
|
<img alt="Featured image" src="{{ .Params.image }}">
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
<div id="page-title">
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "menu.html" . }}
|
|
||||||
|
|
||||||
{{ if isset .Params "image"}}
|
|
||||||
<div id="featured-image">
|
|
||||||
<img alt="Featured image" src="{{ .Params.image }}">
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
<div id="page-title">
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -1,32 +1,36 @@
|
||||||
<nav>
|
<nav>
|
||||||
<input type="checkbox" id="burger-toggle" class="burger-toggle" hidden>
|
<input type="checkbox" id="burger-toggle" class="burger-toggle" hidden>
|
||||||
<label for="burger-toggle" class="burger-button">☰ {{ i18n "menu" }}</label>
|
<label for="burger-toggle" class="burger-button">☰ {{ i18n "menu" }}</label>
|
||||||
<div id="menu-entries">
|
<div id="menu-entries">
|
||||||
<ul class="first">
|
<ul class="first">
|
||||||
{{ $currentPage := . }}
|
{{- $currentPage := . }}
|
||||||
{{ range .Site.Menus.main }}
|
{{- range .Site.Menus.main }}
|
||||||
{{ if false }}
|
{{- if false }}
|
||||||
<li><a class="selected">{{ .Name }}</a>
|
<li>
|
||||||
{{ else }}
|
<a class="selected">{{ .Name }}</a>
|
||||||
<li><a href="{{.URL}}">{{ .Name }}</a>
|
{{ else }}
|
||||||
{{ end }}
|
<li>
|
||||||
{{ if .HasChildren }}
|
<a href="{{.URL}}">{{ .Name }}</a>
|
||||||
<ul class="second">
|
{{- end }}
|
||||||
{{ range .Children }}
|
{{- if .HasChildren }}
|
||||||
<li><a href="{{.URL}}">{{ .Name }}</a>
|
<ul class="second">
|
||||||
{{ if .HasChildren }}
|
{{- range .Children }}
|
||||||
<ul class="third">
|
<li>
|
||||||
{{ range .Children }}
|
<a href="{{.URL}}">{{ .Name }}</a>
|
||||||
<li><a href="{{.URL}}">{{ .Name }}</a></li>
|
{{- if .HasChildren }}
|
||||||
{{ end }}
|
<ul class="third">
|
||||||
</ul>
|
{{- range .Children }}
|
||||||
{{ end }}
|
<li>
|
||||||
</li>
|
<a href="{{.URL}}">{{ .Name }}</a></li>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
{{- end }}
|
||||||
|
</li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,15 +1,9 @@
|
||||||
{{ $recentupdatessection := .Site.Params.recentupdates | default "blog"}}
|
{{- $recentupdatessection := .Site.Params.recentupdates | default "blog" }}
|
||||||
|
{{- with .Site.GetPage "section" $recentupdatessection }}
|
||||||
{{ with .Site.GetPage "section" $recentupdatessection }}
|
<div id="recent-updates">
|
||||||
|
<h2>{{ i18n "latestUpdates" }}</h2>
|
||||||
<div id="recent-updates">
|
{{- range (first 3 (where .Pages "Section" $recentupdatessection)) }}
|
||||||
|
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
||||||
<h2>{{ i18n "latestUpdates" }}</h2>
|
{{- end }}
|
||||||
|
</div>
|
||||||
{{ range (first 3 (where .Pages "Section" $recentupdatessection)) }}
|
{{ end -}}
|
||||||
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
|
|
|
@ -257,6 +257,11 @@ nav ul li a {
|
||||||
padding: 10px 20px 10px 20px;
|
padding: 10px 20px 10px 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
word-wrap: break-word;
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timestamp,
|
.timestamp,
|
||||||
|
|
Loading…
Reference in New Issue