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>
|
</div>
|
||||||
|
{{ partial "menu.html" . -}}
|
||||||
{{ partial "menu.html" . }}
|
{{- if isset .Params "image" }}
|
||||||
|
|
||||||
{{ if isset .Params "image"}}
|
|
||||||
<div id="featured-image">
|
<div id="featured-image">
|
||||||
<img alt="Featured image" src="{{ .Params.image }}">
|
<img alt="Featured image" src="{{ .Params.image }}">
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{- end }}
|
||||||
<div id="page-title">
|
<div id="page-title">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,30 +3,34 @@
|
||||||
<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>
|
||||||
|
<a class="selected">{{ .Name }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li><a href="{{.URL}}">{{ .Name }}</a>
|
<li>
|
||||||
{{ end }}
|
<a href="{{.URL}}">{{ .Name }}</a>
|
||||||
{{ if .HasChildren }}
|
{{- end }}
|
||||||
|
{{- if .HasChildren }}
|
||||||
<ul class="second">
|
<ul class="second">
|
||||||
{{ range .Children }}
|
{{- range .Children }}
|
||||||
<li><a href="{{.URL}}">{{ .Name }}</a>
|
<li>
|
||||||
{{ if .HasChildren }}
|
<a href="{{.URL}}">{{ .Name }}</a>
|
||||||
|
{{- if .HasChildren }}
|
||||||
<ul class="third">
|
<ul class="third">
|
||||||
{{ range .Children }}
|
{{- range .Children }}
|
||||||
<li><a href="{{.URL}}">{{ .Name }}</a></li>
|
<li>
|
||||||
{{ end }}
|
<a href="{{.URL}}">{{ .Name }}</a></li>
|
||||||
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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">
|
<div id="recent-updates">
|
||||||
|
|
||||||
<h2>{{ i18n "latestUpdates" }}</h2>
|
<h2>{{ i18n "latestUpdates" }}</h2>
|
||||||
|
{{- range (first 3 (where .Pages "Section" $recentupdatessection)) }}
|
||||||
{{ range (first 3 (where .Pages "Section" $recentupdatessection)) }}
|
|
||||||
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
<p class="timestamp">{{ .Date.Format "2006-01-02" }} <a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{{ end -}}
|
||||||
{{ 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