feat: initial import
This commit is contained in:
commit
03ab1091b1
50 changed files with 1146 additions and 0 deletions
29
layouts/_partials/header.html
Normal file
29
layouts/_partials/header.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<div class="header__content">
|
||||
{{ with site.Params.logo.main }}
|
||||
{{ with resources.Get . }}
|
||||
<a href="/">
|
||||
<img
|
||||
class="header__logo"
|
||||
src="{{ .RelPermalink }}"
|
||||
width="{{ .Width }}"
|
||||
alt="{{ site.Params.logo.mainAlt }}" />
|
||||
</a>
|
||||
{{ else }}
|
||||
{{ errorf "Unable to find %s in assets directory" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if site.Params.header.buttons }}
|
||||
<div class="header__spacer"> </div>
|
||||
{{ range site.Params.header.buttons }}
|
||||
<a
|
||||
class="{{ compare.Conditional (compare.Eq .type "text") "header__button--text" "header__button" }}"
|
||||
href="{{ .url | safeURL }}">
|
||||
{{ if .icon }}
|
||||
<i class="header__button__icon" data-feather="{{ .icon }}"></i>
|
||||
{{ end }}
|
||||
{{ .name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue