Setup basic navbar
This commit is contained in:
parent
20686afcba
commit
ea3867ac90
3 changed files with 36 additions and 16 deletions
4
content/post/test.md
Normal file
4
content/post/test.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Test
|
||||
---
|
||||
test content
|
|
@ -0,0 +1,16 @@
|
|||
{{ partial "page_start.html" . }}
|
||||
<div id="page-wrapper">
|
||||
<section id="main" class="container">
|
||||
<header>
|
||||
<h2>{{ title .Title }}</h2>
|
||||
{{ if .Params.subtitle }}
|
||||
<p>{{ .Params.subtitle }}</p>
|
||||
{{ end }}
|
||||
</header>
|
||||
<div class="box">
|
||||
<span class="image featured"><img src="images/pic01.jpg" alt="" /></span>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{ partial "page_end.html" . }}
|
|
@ -2,24 +2,24 @@
|
|||
<h1><a href="index.html">{{ title .Site.Title }}</a></h1>
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
<li><a href="index.html">Home</a></li>
|
||||
<li>
|
||||
<a href="#" class="icon fa-angle-down">Layouts</a>
|
||||
<ul>
|
||||
<li><a href="generic.html">Generic</a></li>
|
||||
<li><a href="contact.html">Contact</a></li>
|
||||
<li><a href="elements.html">Elements</a></li>
|
||||
{{ range where .Site.Pages.ByTitle "Kind" "section" }}
|
||||
{{ $page := . }}
|
||||
<li>
|
||||
<a href="{{ $page.Permalink }}">
|
||||
{{ $page.Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ range where .Site.Pages.ByTitle "Kind" "page" }}
|
||||
{{ $page := . }}
|
||||
{{ if eq $page.Section "" }}
|
||||
<li>
|
||||
<a href="#">Submenu</a>
|
||||
<ul>
|
||||
<li><a href="#">Option One</a></li>
|
||||
<li><a href="#">Option Two</a></li>
|
||||
<li><a href="#">Option Three</a></li>
|
||||
<li><a href="#">Option Four</a></li>
|
||||
</ul>
|
||||
<a href="{{ $page.Permalink }}">
|
||||
{{ $page.Title }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue