Nicked some ideas from terminal theme

This commit is contained in:
Nox Sluijtman 2022-08-11 11:42:39 +02:00
parent 8ce8bcfe45
commit f474eb76e0
6 changed files with 137 additions and 3 deletions

View file

@ -16,5 +16,6 @@
<meta charset="utf-8">
</head>
<body>
<h1 class="logo" id="{{ .Site.Title }}">{{ .Site.Title | title }}</h1>
{{ partial "nav.html" . }}
{{ partial "logo.html" . }}
<!--<h1 class="logo" id="{{ .Site.Title }}">{{ .Site.Title | title }}</h1>-->
{{ partial "menu.html" . }}

View file

@ -0,0 +1,8 @@
<div class="logo">
<img src="/logoOptimised.svg" style="max-height:5em;float:left;"/>
<h1>
<a href="{{ if $.Site.Params.Logo.LogoHomeLink }}{{ $.Site.Params.Logo.LogoHomeLink }}{{else}}{{ $.Site.BaseURL }}{{ end }}">
{{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}Void{{ end }}
</a>
</h1>
</div>

View file

@ -0,0 +1,8 @@
<nav class="menu">
<a href="/">Home</a>
{{ range $.Site.Menus.main }}
{{ if not .HasChildren }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
{{ end }}
</nav>