Starting theme

This commit is contained in:
Adsooi 2021-06-08 16:19:46 +02:00
parent 83d9b13642
commit ea539cdf36
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
39 changed files with 977 additions and 0 deletions

0
layouts/404.html Normal file
View file

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content" class="center">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View file

View file

4
layouts/index.html Normal file
View file

@ -0,0 +1,4 @@
{{ define "main" }}
<h1>Test</h1>
{{ end }}

View file

View file

@ -0,0 +1,7 @@
<head>
<title>{{ .Site.Title }} - {{ .Params.title }}</title>
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="/css/header.css">
<link rel="stylesheet" href="/css/font.css">
<script src="/js/header.js"></script>
</head>

View file

@ -0,0 +1,46 @@
<nav>
<div class="center nav-flex">
{{ $currentPage := . }}
<div class="nav-mobile">
<a class="navbar-brand" href="//ad5001.eu">
<img src="/img/icon.png" class="icon-brand" alt=""></img>
{{ .Site.Title }}
</a>
<button id="navbar-toggler">
<img src="/icons/menu.svg" class=""/>
</button>
</div>
<div class="navbar-menu">
<ul class="navbar-list">
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<a href="#">
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</li>
</a>
<ul class="sub-menu">
{{ range .Children }}
<a href="{{ .URL }}">
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
{{ .Name }}
</li>
</a>
{{ end }}
</ul>
{{ else }}
<a href="{{ .URL }}">
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</li>
</a>
{{ end }}
{{ end }}
</ul>
</div>
</div>
</nav>