Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
28
themes/platters/layouts/partials/header.html
Normal file
28
themes/platters/layouts/partials/header.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
{{- $currentPage := . -}}
|
||||
{{- $url := .RelPermalink -}}
|
||||
<header class="site">
|
||||
<div class="platter grid">
|
||||
<h1 class="site gradient">
|
||||
<a class="site-name" href="{{ `` | absURL }}">{{ partial "site_name.html" site.Params.shortTitle }}</a>
|
||||
</h1>
|
||||
{{ partial "site_nav.html" . }}
|
||||
<nav class="social">
|
||||
{{ with site.Menus.social }}
|
||||
{{- range . -}}
|
||||
{{- $id := .Identifier -}}
|
||||
{{- $targetBlank := .Params.targetBlank | default true -}}
|
||||
<li id="social-menu-{{ $id }}">
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
{{ if $targetBlank }}
|
||||
target="_blank"
|
||||
{{ end }}
|
||||
aria-label="{{ .Name }}">
|
||||
<img alt="{{ .Name }}" width=20 height=20>
|
||||
</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
Loading…
Add table
Add a link
Reference in a new issue