Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break out Site Updates into own page and datafile
- Loading branch information
Showing
5 changed files
with
82 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
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,8 @@ | ||
--- | ||
title: Site Updates | ||
type: page | ||
layout: basic | ||
displayClass: article | ||
--- | ||
|
||
{{< date_listing "site_updates" "updates" >}} |
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,49 @@ | ||
[[updates]] | ||
date = 1686758400 | ||
entries = [ | ||
"Taxonomy pages now show posts within each section" | ||
] | ||
|
||
[[updates]] | ||
date = 1686844800 | ||
entries = [ | ||
"Add 'Site Updates' to Sidebar", | ||
"Add breadcrumb navigation", | ||
"Qualify display of dates on posts", | ||
"Add commit info to posts", | ||
"Fix taxonomy listings" | ||
] | ||
|
||
[[updates]] | ||
date = 1686931200 | ||
entries = [ | ||
"Compress CSS assets", | ||
"Add section headers", | ||
"Add current page in paginator to breadcrumb" | ||
] | ||
|
||
[[updates]] | ||
date = 1687017600 | ||
entries = [ | ||
"Add Disqus commenting", | ||
"Create [staging site](http://staging.cmrasys.com/)" | ||
] | ||
|
||
[[updates]] | ||
date = 1687708800 | ||
entries = [ | ||
"Generate multiple image sizes for mobile" | ||
] | ||
|
||
[[updates]] | ||
date = 1688054400 | ||
entries = [ | ||
"Minor update to Taxonomy page layout" | ||
] | ||
|
||
[[updates]] | ||
date = 1688227200 | ||
entries = [ | ||
"Added separate [Site Updates](/site_updates/) page", | ||
"Broke out Site Update information into data file for portability" | ||
] |
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,12 @@ | ||
{{ $lookup := index (index .Site.Data (.Get 0)) (.Get 1) }} | ||
{{ $format := "January 2, 2006" }} | ||
{{ $count := (.Get 2) | default ($lookup | len)}} | ||
|
||
{{ range first $count (sort $lookup ".date" "desc") }} | ||
<p>{{ .date | int | dateFormat $format }}</p> | ||
<ul> | ||
{{ range .entries }} | ||
<li>{{ $.Page.RenderString . }}</li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} |