-
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.
- Loading branch information
Showing
6 changed files
with
47 additions
and
67 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
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
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{ $pages := where site.RegularPages "Type" "posts" }} | ||
{{ range $pages.GroupByPublishDate "2006" }} | ||
<div class="posts-groupby"> | ||
<h3>{{ .Key }}</h3> | ||
<ul> | ||
{{ range .Pages }} | ||
<li> | ||
<a href="{{ .RelPermalink }}"><span title={{ .LinkTitle }} class="post-title">{{ if .Draft }}<em | ||
title="Draft post">[D] </em>{{ | ||
end }}{{ | ||
.LinkTitle | truncate 128 }}</span> | ||
<small class="post-metadata"> | ||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" | ||
}} {{ $dateHuman := .Date | time.Format "2 Jan" }} | ||
<span title={{ .Date | time.Format "January 2, 2006" }}><time datetime="{{ $dateMachine }}">{{ $dateHuman | ||
}}</time></span> | ||
<span title="{{ .WordCount }} words"> | ||
{{ .ReadingTime }} min</span></small></a> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
{{ end }} |
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
Empty file.