Skip to content

Commit

Permalink
Replaced .Recent with .Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroxy committed Jun 5, 2015
1 parent 1ea4bec commit 74e7c8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/post/goisforlovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ so, such as in this example:
```
<nav class="recent">
<h1>Recent Posts</h1>
<ul>{{range first .Site.Params.SidebarRecentLimit .Site.Recent}}
<ul>{{range first .Site.Params.SidebarRecentLimit .Site.Pages}}
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
{{end}}</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h3>Related Post</h3>
<ul class="post-rels">
{{ $page_link := .Permalink }}
{{ $tags := .Params.tags }}
{{ range .Site.Recent }}
{{ range .Site.Pages }}
{{ $page := . }}
{{ $has_common_tags := intersect $tags .Params.tags | len | lt 0 }}
{{ if and $has_common_tags (ne $page_link $page.Permalink) }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/default_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="{{ .Site.BaseUrl }}/post">All Posts</a></li>
{{ range where .Site.Recent "Type" "page" }}
{{ range where .Site.Pages "Type" "page" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h2 class="panel-title">Recent Posts</h2>
</div>
<div class="list-group">
{{range first 10 .Site.Recent}}
{{range first 10 .Site.Pages}}
<a href="{{.RelPermalink}}" class="list-group-item">{{ .Title }}</a>
{{ end }}
</div>
Expand Down

0 comments on commit 74e7c8b

Please sign in to comment.