Begin overhaul
This commit is contained in:
parent
fe615f0822
commit
920d0ef3ac
18 changed files with 543 additions and 59 deletions
9
themes/marcriera/layouts/partials/footer.html
Normal file
9
themes/marcriera/layouts/partials/footer.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
<div id="footer">
|
||||
{{ now.Year }} - {{ $.Site.Params.copyright }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
51
themes/marcriera/layouts/partials/header.html
Normal file
51
themes/marcriera/layouts/partials/header.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/theme.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
|
||||
{{ .Hugo.Generator }}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
|
||||
<div id="header-left">
|
||||
|
||||
{{ if isset .Site.Params "logoimage" }}
|
||||
<div id="site-logo">
|
||||
<a href="{{ .Site.BaseURL }}"><img alt="Site logo" src="{{ .Site.BaseURL }}{{ .Site.Params.logoimage }}"></a>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div id="site-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></div>
|
||||
<div id="site-slogan">{{ .Site.Params.Description }}</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="header-right">
|
||||
{{ if .IsTranslated }}
|
||||
<ul class="language-selector">
|
||||
<li>
|
||||
<a class="selected">{{ .Language.LanguageName }}</a>
|
||||
</li>
|
||||
{{ range .Translations }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
</li>
|
||||
{{ end}}
|
||||
</ul>
|
||||
{{ 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>
|
32
themes/marcriera/layouts/partials/menu.html
Normal file
32
themes/marcriera/layouts/partials/menu.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<nav>
|
||||
<input type="checkbox" id="burger-toggle" class="burger-toggle" hidden>
|
||||
<label for="burger-toggle" class="burger-button">☰ {{ i18n "menu" }}</label>
|
||||
<div id="menu-entries">
|
||||
<ul class="first">
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
{{ if false }}
|
||||
<li><a class="selected">{{ .Name }}</a>
|
||||
{{ else }}
|
||||
<li><a href="{{.URL}}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ if .HasChildren }}
|
||||
<ul class="second">
|
||||
{{ range .Children }}
|
||||
<li><a href="{{.URL}}">{{ .Name }}</a>
|
||||
{{ if .HasChildren }}
|
||||
<ul class="third">
|
||||
{{ range .Children }}
|
||||
<li><a href="{{.URL}}">{{ .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
16
themes/marcriera/layouts/partials/pagination.html
Normal file
16
themes/marcriera/layouts/partials/pagination.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{ $pag := .Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
<ul class="pagination">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<li class="previous"><a href="{{ .Site.BaseURL }}{{ .Paginator.Prev.URL }}">← {{ i18n "newer" }}</a></li>
|
||||
{{ else }}
|
||||
<li class="previous-disabled">← {{ i18n "newer" }}</li>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Paginator.HasNext }}
|
||||
<li class="next"><a href="{{ .Site.BaseURL }}{{ .Paginator.Next.URL }}">{{ i18n "older" }} →</a></li>
|
||||
{{ else }}
|
||||
<li class="next-disabled">{{ i18n "older" }} →</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
5
themes/marcriera/layouts/partials/tags.html
Normal file
5
themes/marcriera/layouts/partials/tags.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p class="tags">
|
||||
Tags: {{ range . }}
|
||||
<a href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
</p>
|
Loading…
Add table
Add a link
Reference in a new issue