Starting theme
This commit is contained in:
parent
83d9b13642
commit
ea539cdf36
39 changed files with 977 additions and 0 deletions
0
layouts/partials/footer.html
Normal file
0
layouts/partials/footer.html
Normal file
7
layouts/partials/head.html
Normal file
7
layouts/partials/head.html
Normal 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>
|
46
layouts/partials/header.html
Normal file
46
layouts/partials/header.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue