-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue with empty pages and pagegroup type conversion
- Loading branch information
Showing
2 changed files
with
34 additions
and
30 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,33 +1,35 @@ | ||
<!-- same as index.html for tags listing --> | ||
<div class="container"> | ||
{{ partial "header" . }} | ||
{{ partial "nav" . }} | ||
<main class="container"> | ||
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}} | ||
<h1 class="title is-3">{{ .Key }}</h1> | ||
{{ range where .Pages "Section" "posts" }} | ||
<article class="columns"> | ||
<div class="column is-2"> | ||
<h6 class="is-inline" style="white-space: nowrap">{{ .Date.Format "Jan 2" }}</h2> | ||
{{ partial "header" . }} | ||
{{ partial "nav" . }} | ||
<main class="container"> | ||
{{ if .Pages }} | ||
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups}} | ||
<h1 class="title is-3">{{ .Key }}</h1> | ||
{{ range where .Pages "Section" "posts" }} | ||
<article class="columns"> | ||
<div class="column is-2"> | ||
<h6 class="is-inline" style="white-space: nowrap">{{ .Date.Format "Jan 2" }}</h2> | ||
</div> | ||
<div class="column"> | ||
<h2 class="subtitle is-inline is-size-4-mobile is-size-3-desktop"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}</h1> | ||
<div class="content is-hidden-mobile"> | ||
{{ .Summary | plainify | safeHTML | truncate 400 }} | ||
{{ if .Truncated }} | ||
<br> | ||
<a class="button is-marginless is-paddingless" href="{{ .Permalink }}"> | ||
<span class="icon-link is-small" style="line-height: 100%"> | ||
<i class="fa fa-angle-double-right" aria-hidden="true"></i> | ||
</span> | ||
<p style="padding:0 5px"></p>more</p> | ||
</a> | ||
{{ end }} | ||
</div> | ||
<div class="column"> | ||
<h2 class="subtitle is-inline is-size-4-mobile is-size-3-desktop"><a href="{{ .Permalink }}">{{ .Title }}</a>{{ if .Draft }} ::Draft{{ end }}</h1> | ||
<div class="content is-hidden-mobile"> | ||
{{ .Summary | plainify | safeHTML | truncate 400 }} | ||
{{ if .Truncated }} | ||
<br> | ||
<a class="button is-marginless is-paddingless" href="{{ .Permalink }}"> | ||
<span class="icon-link is-small" style="line-height: 100%"> | ||
<i class="fa fa-angle-double-right" aria-hidden="true"></i> | ||
</span> | ||
<p style="padding:0 5px"></p>more</p> | ||
</a> | ||
{{ end }} | ||
</div> | ||
</article> | ||
{{ end }} | ||
{{ end }} | ||
</main> | ||
{{ partial "pager" . }} | ||
{{ partial "footer" . }} | ||
</div> | ||
</article> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
</main> | ||
{{ partial "pager" . }} | ||
{{ partial "footer" . }} | ||
</div> |
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