mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2025-06-08 06:14:26 +02:00
Nicked some ideas from terminal theme
This commit is contained in:
parent
8ce8bcfe45
commit
f474eb76e0
6 changed files with 137 additions and 3 deletions
|
@ -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" . }}
|
||||
|
|
8
layouts/partials/logo.html
Normal file
8
layouts/partials/logo.html
Normal 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>
|
8
layouts/partials/menu.html
Normal file
8
layouts/partials/menu.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue