docs: Limit the quotes on front page to the last two years

We should get some new ones in there.

Also shuffle the order. This also means no merging into 0.15-docs ...

Which also means we should get a release out there ... soon!

See #2055

Also See https://github.com/BurntSushi/toml/issues/129 for an explanation to the little bit ugly dates.
This commit is contained in:
Bjørn Erik Pedersen
2016-04-07 23:46:46 +02:00
parent 40f62a863c
commit ef933e4a7f
2 changed files with 27 additions and 27 deletions

View File

@@ -140,7 +140,7 @@
<div class="col-md-12 text-center">
<!-- Wrapper for slides -->
<div class="carousel-inner owl-carousel">
{{ partial "quotes.html" ($.Site.Data.references.quotes) }}
{{ partial "quotes.html" ((where $.Site.Data.references.quotes "date" "ge" ($.Now.AddDate -2 0 0) | shuffle )) }}
</div>
</div>
</div>