forked from onweru/compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: weru <[email protected]>
- Loading branch information
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
<div class="pager{{ if .Next }}{{ else }} pager_lean{{ end }}"> | ||
{{- $searchURL := "/search/" }} | ||
{{ with .Site.RegularPages.Next . }} | ||
<div class="pager_item prev"> | ||
<!-- <span class="pager_meta">PREVIOUS</span> --> | ||
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="prev"> | ||
<span class="pager_label">{{ .Title }}</span> | ||
</a> | ||
</div> | ||
{{ if ne .RelPermalink $searchURL }} | ||
<div class="pager_item prev"> | ||
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="prev"> | ||
<span class="pager_label">{{ .Title }}</span> | ||
</a> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ with .Site.RegularPages.Prev . }} | ||
<div class="pager_item next"> | ||
<!-- <span class="pager_meta">NEXT</span> --> | ||
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="next"> | ||
<span class="pager_label">{{ .Title }}</span> | ||
</a> | ||
</div> | ||
{{ if ne .RelPermalink $searchURL }} | ||
<div class="pager_item next"> | ||
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="next"> | ||
<span class="pager_label">{{ .Title }}</span> | ||
</a> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
{{ partialCached "sprites" . }} |