-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add archive page Co-authored-by: Teppo <[email protected]>
- Loading branch information
1 parent
77abc38
commit 30fdae1
Showing
12 changed files
with
110 additions
and
7 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
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,4 @@ | ||
--- | ||
title: "Archive page" | ||
type: archive | ||
--- |
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 |
---|---|---|
|
@@ -35,3 +35,5 @@ other = "Andere Sprachen" | |
one = "1 Min. lesen" | ||
other = "{{.Count}} Min. lesen" | ||
|
||
[archive] | ||
other = "Archiv" |
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 |
---|---|---|
|
@@ -40,3 +40,6 @@ other = "Table of Contents" | |
|
||
[series] | ||
other = "Series" | ||
|
||
[archive] | ||
other = "Archive" |
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,29 @@ | ||
{{ define "main" }} | ||
<div class="content"> | ||
<div class="article-wrapper u-cf single"> | ||
<a class="bubble" href="{{ "/archive/" | relLangURL}}"> | ||
<i class="fa fa-fw fa-archive"></i> | ||
</a> | ||
|
||
<article class="article"> | ||
<div class="content"> | ||
<h3>{{ i18n "archive" }}</h3> | ||
<hr> | ||
|
||
<div class="archive-list"> | ||
{{ range (where .Site.RegularPages "Type" "not in" (slice "page" "archive" "status" ) ).GroupByPublishDate (.Site.Params.archiveDateGrouping | default "2006-01") }} | ||
<h4>{{ .Key }}</h4> | ||
<ul> | ||
{{ range .Pages }} | ||
<li> | ||
<a href="{{ .Permalink }}">{{ .Title }} <span>({{ .PublishDate.Format (.Site.Params.DateFormat | default "2006-01-02") }})</span></a> | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</article> | ||
</div> | ||
</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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.