Added files of the theme
This commit is contained in:
35
layouts/partials/nav-bar.html
Normal file
35
layouts/partials/nav-bar.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<nav class="nav-bar card-container">
|
||||
|
||||
<div class="card blog-card menu-container">
|
||||
<h1 class="nav-header">
|
||||
<a href="{{ .Site.BaseURL }}" class="nav-text">
|
||||
{{- if isset $.Site.Params "brand"}}
|
||||
{{- $.Site.Params.brand -}}
|
||||
{{ else }}
|
||||
{{- $.Site.Title -}}
|
||||
{{ end -}}
|
||||
</a>
|
||||
</h1>
|
||||
<br>
|
||||
<section id="menu">
|
||||
<ul>
|
||||
<li><a href="{{ .Site.BaseURL }}" class="">HOME</a></li>
|
||||
|
||||
{{ range where .Site.Pages "Params.displayinmenu" true -}}
|
||||
<li><a href="{{ .Permalink }}" class="">{{ .Title | upper }}</a></li>
|
||||
{{ end -}}
|
||||
|
||||
<!-- Categories -->
|
||||
<!-- {{ range $key, $value := .Site.Taxonomies.categories -}}
|
||||
<!-- {{ with $.Site.GetPage (printf "%s%s" "categories/" ($key | urlize)) }}
|
||||
<li><a href="{{ .Permalink }}" class="">{{ .Title | upper }}</a></li>
|
||||
{{ end }}
|
||||
{{- end }} -->
|
||||
|
||||
{{ if eq .Site.Params.rssinmenu true -}}
|
||||
<li><a href="{{ "/index.xml" | absURL }}" class="hamburger-menu-overlay-link">RSS</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user