Draw the rest of the fucking owl
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
35
layouts/partials/header.html
Normal file
35
layouts/partials/header.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="container">
|
||||
<div class="terminal-nav">
|
||||
<header class="terminal-logo">
|
||||
<div class="logo terminal-prompt">
|
||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||
{{ $.Scratch.Add "path" .Site.BaseURL }}
|
||||
<a
|
||||
href="{{ .Site.BaseURL }}"
|
||||
class="no-style {{ with .Site.Params.TitleCutting }}
|
||||
site-name
|
||||
{{ end }}"
|
||||
>{{ .Site.Params.prompt | default .Site.Title }}</a
|
||||
><span class="prompt-symbol">:~#</span>
|
||||
{{ range $index, $element := split $url "/" }}
|
||||
{{ $.Scratch.Add "path" $element }}{{ if ne $element "" }}
|
||||
<a href="{{ $.Scratch.Get " path" | absURL }}">{{ . }}</a>
|
||||
<span class="prompt-symbol">/{{ $.Scratch.Add "path" "/" }}</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
<nav class="terminal-menu">
|
||||
<ul vocab="https://schema.org/" typeof="BreadcrumbList">
|
||||
{{ range $index, $element := .Site.Params.navlinks }}
|
||||
<li property="itemListElement" typeof="ListItem">
|
||||
<a property="item" typeof="WebPage" href="{{ absURL .url }}">
|
||||
<span property="name">{{ .name }}</span>
|
||||
</a>
|
||||
<meta property="position" content="{{ add $index 1 }}" />
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user