home => blog
This commit is contained in:
parent
5cdf62a4ab
commit
8cb088e142
@ -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}}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
+++
|
||||
Area = "home"
|
||||
CrumbName = "home"
|
||||
Area = "blog"
|
||||
CrumbName = "blog"
|
||||
Layout = "collection"
|
||||
Title = "Home"
|
||||
Title = "Blog"
|
||||
+++
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
+++
|
||||
Area = "portfolio"
|
||||
CrumbName = "portfolio"
|
||||
CrumbParent = "home"
|
||||
CrumbParent = "blog"
|
||||
Layout = "page"
|
||||
Title = "Portfolio"
|
||||
+++
|
||||
|
@ -1,7 +1,7 @@
|
||||
+++
|
||||
Area = "projects"
|
||||
CrumbName = "projects"
|
||||
CrumbParent = "home"
|
||||
CrumbParent = "blog"
|
||||
Layout = "page"
|
||||
Title = "Projects"
|
||||
+++
|
||||
|
@ -1,7 +1,7 @@
|
||||
+++
|
||||
Area = "tags"
|
||||
CrumbName = "tags"
|
||||
CrumbParent = "home"
|
||||
CrumbParent = "blog"
|
||||
Layout = "tags"
|
||||
Title = "Tags"
|
||||
+++
|
||||
|
Loading…
Reference in New Issue
Block a user