This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
theme-geeklab/layouts/_default/baseof.html

46 lines
1.6 KiB
HTML
Raw Normal View History

2018-10-09 06:25:05 +00:00
<!DOCTYPE html>
2018-12-20 23:09:35 +00:00
<html lang="{{ .Site.Language.Lang }}">
{{ partial "head.html" . -}}
2018-10-09 06:25:05 +00:00
<body>
2018-10-10 14:56:52 +00:00
<header>
<div class="site-header">
<span class="site-header__icon"><i class="fas fa-flask"></i></span>
2018-12-20 23:09:35 +00:00
<span class="site-header__title">{{ .Site.Title }}</span>
<span class="site-header__description">{{ .Site.Params.longTitle }}</span>
2018-10-09 06:25:05 +00:00
</div>
2018-10-10 14:56:52 +00:00
2018-10-13 01:31:09 +00:00
<div class="site-nav__mobile">
<span class="site-nav__button" onclick="toogleClass('js-site-nav');">Menu</span>
2018-10-10 14:56:52 +00:00
</div>
2018-10-13 01:31:09 +00:00
<nav id="js-site-nav" class="site-nav">
2018-10-10 14:56:52 +00:00
<ul class="site-nav__list">
{{ $currentPage := .Permalink }}
<li><a class="site-nav__button {{- if eq $currentPage (printf "%s" .Site.BaseURL) }} is-active {{- end }}" href="{{ .Site.BaseURL }}">Blog</a></li>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
{{ with $.Site.GetPage (printf "/categories/%s" $name) }}
2018-10-11 15:14:19 +00:00
<li><a class="site-nav__button {{ if eq $currentPage .Permalink }} is-active {{ end }}" href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
</nav>
2018-10-09 06:25:05 +00:00
</header>
2018-10-09 15:07:43 +00:00
2018-10-10 14:56:52 +00:00
<div class="site-wrapper">
<main class="site-content">
2018-10-09 06:25:05 +00:00
{{ block "main" . }}{{ end }}
2018-10-10 14:56:52 +00:00
</main>
2018-12-20 23:09:35 +00:00
{{ partial "footer.html" . -}}
2018-10-09 06:25:05 +00:00
</div>
2018-10-09 15:07:43 +00:00
<link rel="stylesheet" type="text/css" href="{{ "default.min.css" | relURL }}" />
2018-10-09 21:59:17 +00:00
<link rel="stylesheet" type="text/css" href="{{ "_tool/fontawesome/css/all.min.css" | relURL }}" />
2018-10-13 01:31:09 +00:00
<script type="text/javascript">
function toogleClass(id) {
document.getElementById(id).classList.toggle("is-visible");
}
</script>
2018-10-09 06:25:05 +00:00
</body>
</html>