36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
<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>
|