1

home => blog

This commit is contained in:
Alex Yatskov 2017-12-29 10:35:43 -08:00
parent 5cdf62a4ab
commit 8cb088e142
14 changed files with 25 additions and 26 deletions

View File

@ -25,15 +25,15 @@
{{end}} {{end}}
{{range .Meta.Pager.PagesAll}} {{range .Meta.Pager.PagesAll}}
{{if eq $.Meta.Pager.PageCurr.Index .Index}} {{if eq $.Meta.Pager.PageCurr.Index .Index}}
<li class="page-item disabled"> <li class="page-item disabled">
<a class="page-link" href="#">{{.Index}}</a> <a class="page-link" href="#">{{.Index}}</a>
</li> </li>
{{else}} {{else}}
<li class="page-item"> <li class="page-item">
<a class="page-link" href="{{.File.Path}}">{{.Index}}</a> <a class="page-link" href="{{.File.Path}}">{{.Index}}</a>
</li> </li>
{{end}} {{end}}
{{end}} {{end}}
{{if .Meta.Pager.PageCurr.Next}} {{if .Meta.Pager.PageCurr.Next}}
@ -50,4 +50,3 @@
</div> </div>
{{template "footer" .}} {{template "footer" .}}
{{end}} {{end}}

View File

@ -57,8 +57,8 @@
<ul class="list-unstyled"> <ul class="list-unstyled">
{{range .Meta.Files}} {{range .Meta.Files}}
{{if .IsDir}}<strong>{{end}} {{if .IsDir}}<strong>{{end}}
<li><a href="/{{.Path}}">{{.Name}}</a></li> <li><a href="/{{.Path}}">{{.Name}}</a></li>
{{if .IsDir}}</strong>{{end}} {{if .IsDir}}</strong>{{end}}
{{end}} {{end}}
</ul> </ul>
</div> </div>

View File

@ -29,7 +29,7 @@
<div class="collapse navbar-collapse" id="navbarNavAltMarkup"> <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav"> <div class="navbar-nav">
{{$area := .Meta.Area}} {{$area := .Meta.Area}}
<a class="nav-item nav-link {{if $area}}{{if eq $area "home"}}active{{end}}{{end}}" href="/">Home</a> <a class="nav-item nav-link {{if $area}}{{if eq $area "blog"}}active{{end}}{{end}}" href="/">Blog</a>
<a class="nav-item nav-link {{if $area}}{{if eq $area "portfolio"}}active{{end}}{{end}}" href="/portfolio/">Portfolio</a> <a class="nav-item nav-link {{if $area}}{{if eq $area "portfolio"}}active{{end}}{{end}}" href="/portfolio/">Portfolio</a>
<a class="nav-item nav-link {{if $area}}{{if eq $area "projects"}}active{{end}}{{end}}" href="/projects/">Projects</a> <a class="nav-item nav-link {{if $area}}{{if eq $area "projects"}}active{{end}}{{end}}" href="/projects/">Projects</a>
<a class="nav-item nav-link {{if $area}}{{if eq $area "tags"}}active{{end}}{{end}}" href="/tags/">Tags</a> <a class="nav-item nav-link {{if $area}}{{if eq $area "tags"}}active{{end}}{{end}}" href="/tags/">Tags</a>

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 1" Title = "Blog Post 1"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas quis placerat elit. Pellentesque metus turpis, egestas Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas quis placerat elit. Pellentesque metus turpis, egestas

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 2" Title = "Blog Post 2"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 3" Title = "Blog Post 3"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 4" Title = "Blog Post 4"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 5" Title = "Blog Post 5"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 6" Title = "Blog Post 6"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo

View File

@ -2,7 +2,7 @@
Layout = "page" Layout = "page"
Title = "Blog Post 7" Title = "Blog Post 7"
Collection = "Blog" Collection = "Blog"
CrumbParent = "home" CrumbParent = "blog"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent placerat at ligula vel condimentum. Morbi commodo

View File

@ -1,7 +1,7 @@
+++ +++
Area = "home" Area = "blog"
CrumbName = "home" CrumbName = "blog"
Layout = "collection" Layout = "collection"
Title = "Home" Title = "Blog"
+++ +++

View File

@ -1,7 +1,7 @@
+++ +++
Area = "portfolio" Area = "portfolio"
CrumbName = "portfolio" CrumbName = "portfolio"
CrumbParent = "home" CrumbParent = "blog"
Layout = "page" Layout = "page"
Title = "Portfolio" Title = "Portfolio"
+++ +++

View File

@ -1,7 +1,7 @@
+++ +++
Area = "projects" Area = "projects"
CrumbName = "projects" CrumbName = "projects"
CrumbParent = "home" CrumbParent = "blog"
Layout = "page" Layout = "page"
Title = "Projects" Title = "Projects"
+++ +++

View File

@ -1,7 +1,7 @@
+++ +++
Area = "tags" Area = "tags"
CrumbName = "tags" CrumbName = "tags"
CrumbParent = "home" CrumbParent = "blog"
Layout = "tags" Layout = "tags"
Title = "Tags" Title = "Tags"
+++ +++