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

View File

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

View File

@ -29,7 +29,7 @@
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
{{$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 "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>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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