Initial commit
This commit is contained in:
27
themes/coopgo-theme/layouts/partials/header.html
Normal file
27
themes/coopgo-theme/layouts/partials/header.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<nav id="navbar">
|
||||
<div class='left bg-white'>
|
||||
{{ $logo := resources.Get .Site.Params.Logo }}
|
||||
<a href="{{.Site.BaseURL}}"><img src="{{ $logo.Permalink }}" alt="COOPGO" /></a>
|
||||
</div>
|
||||
<div class='center bg-white'>
|
||||
<ul class="flex-row j-center ai-center">
|
||||
{{ $pages := where .Site.RegularPages.ByDate "Type" "in" .Site.Params.mainPages }}
|
||||
{{ range $pages }}
|
||||
<li class="max-w-200">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class='{{ if ne (relURL .URL) ("/" | safeHTML) }}bg-primary{{ end }} right w-400'>
|
||||
<ul class="flex-row j-center ai-center">
|
||||
<li>
|
||||
{{ $gotogether := resources.Get "images/gotogether-lemag.svg" }}
|
||||
<a href="/gotogether/">
|
||||
<img class="h-25" src="{{ $gotogether.Permalink }}" alt="GO TOGETHER le mag" />
|
||||
</a>
|
||||
</li>
|
||||
{{ if eq (relURL .URL) ("/" | safeHTML) }}<li><a href="#section4">NOS PROJETS</a></li>{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user