Testing phugo as theme
This commit is contained in:
16
layouts/partials/header.html
Normal file
16
layouts/partials/header.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<header id="header">
|
||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||
{{ $.Scratch.Add "path" .Site.BaseURL }}
|
||||
<h1>
|
||||
<a href="{{ .Site.BaseURL }}"><strong>{{ .Site.Title }}</strong></a>
|
||||
{{ range $index, $element := split $url "/" }}
|
||||
{{ $.Scratch.Add "path" $element }}
|
||||
{{ if ne $element "" }}
|
||||
/ {{ . | humanize }}
|
||||
{{ $.Scratch.Add "path" "/" }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</h1>
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
</header>
|
||||
Reference in New Issue
Block a user