Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jsnjack/hugo-changelog-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Tsoy <maks.tsoy@gmail.com>2019-05-07 15:52:05 +0300
committerMaxim Tsoy <maks.tsoy@gmail.com>2019-05-07 15:52:05 +0300
commit2ab57e46d75fd1f1d4b1235d50c84cb81e742527 (patch)
treea982b2b2526d10dc2cb95608f4fa70b1830ea2a6
parent5750967555ce96ff0f2e7bfc44e19eb8ec4ba939 (diff)
Sort deprecated entries by date
-rw-r--r--exampleSite/content/deprecated/depr.md2
-rw-r--r--exampleSite/content/deprecated/depr2.md21
-rw-r--r--layouts/index.html8
3 files changed, 26 insertions, 5 deletions
diff --git a/exampleSite/content/deprecated/depr.md b/exampleSite/content/deprecated/depr.md
index 17009cd..f50648d 100644
--- a/exampleSite/content/deprecated/depr.md
+++ b/exampleSite/content/deprecated/depr.md
@@ -2,7 +2,7 @@
title:
subtitle: created on {{ now.Format "2006-01-02" }}
date: 2018-09-02T20:46:47+02:00
-removal_date: 2019-07-01
+removal_date: 2019-07-07
weight:
version:
---
diff --git a/exampleSite/content/deprecated/depr2.md b/exampleSite/content/deprecated/depr2.md
new file mode 100644
index 0000000..c02ba64
--- /dev/null
+++ b/exampleSite/content/deprecated/depr2.md
@@ -0,0 +1,21 @@
+---
+title:
+subtitle: created on {{ now.Format "2006-01-02" }}
+date: 2018-09-02T20:46:47+02:00
+removal_date: 2019-07-02
+weight:
+version:
+---
+
+#### Feature Y will be removed
+
+Lorem markdownum fulmen repetita atro praecipitem tela accepto quantumque
+funeribus spes; casus memorabile. [Concidit culmine](http://ora-tyria.net/),
+unda ad **adhuc** liquidi cognata, sua cetera; ceu iam facientia quem. Regina
+referre tibi places cum et meritorum, **in atque**, capillos et deos. Di sua
+cepit excidit pectore probarunt fatale muta vento in Tamasenum.
+
+Templa hunc, exosa felix os temerasse Boreas facies nam ferre regimen! Fidemque
+signans stant Volturnus dicta vides, utque caelo pallidiora.
+
+Tandem stat surgis. Rerum nati arbitrio, nactusque dilectos a!
diff --git a/layouts/index.html b/layouts/index.html
index de0e12b..3615138 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,19 +20,19 @@
<span class="label label-rounded label-warning">{{ len ($deprecatedFeatures) }}</span> deprecated features
</label>
<div class="accordion-body">
+ {{ range ($deprecatedFeatures.ByParam "removal_date").Reverse }}
<div class="timeline-item">
<div class="timeline-left">
<div class="timeline-icon"></div>
</div>
<div class="timeline-content">
<div>
- {{ range $deprecatedFeatures }}
- <h6>{{ .Params.removal_date }}</h6>
- {{ .Content }}
- {{ end }}
+ <h6>{{ .Params.removal_date }}</h6>
+ {{ .Content }}
</div>
</div>
</div>
+ {{ end }}
</div>
</div>
{{ end }}