shithub: hugo

Download patch

ref: ef933e4a7f590b927c7703e5c6383f9f5b103d7c
parent: 40f62a863c6fc923d7b1efd26b9e227ae64b542d
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Apr 7 19:46:46 EDT 2016

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.

--- a/docs/data/references.toml
+++ b/docs/data/references.toml
@@ -3,7 +3,7 @@
 twitter_handle = "@eviltester"
 quote = "I migrated the <a href='https://twitter.com/BlackOpsTesting'> @BlackOpsTesting </a> .com website from docpad to Hugo last weekend. http://gohugo.io/  Super Fast HTML Generation <a href='https://twitter.com/spf13'> @spf13 </a>"
 link = "https://twitter.com/eviltester/status/553520335115808768"
-date = "2015-01-09"
+date = 2015-01-09T00:00:00Z
 
 [[quotes]]
 name = "Baron Schwartz"
@@ -10,7 +10,7 @@
 twitter_handle = "@xaprb"
 quote = "Hugo is impressively capable. It's a static site generator by <a href='https://twitter.com/spf13'> @spf13 </a> written in <a href='https://twitter.com/hashtag/golang?src=hash'> #golang </a> . Just upgraded to latest release; very powerful.  "
 link = "https://twitter.com/xaprb/status/556894866488455169"
-date = "2015-01-18"
+date = 2015-01-18T00:00:00Z
 
 [[quotes]]
 name = "Dave Cottlehuber"
@@ -17,7 +17,7 @@
 twitter_handle = "@dch__"
 quote = "I just fell in love with #hugo, a static site/blog engine written by @spf13 in #golang  + stellar docs"
 link = "https://twitter.com/dch__/status/460158115498176512"
-date = "2014-04-26"
+date = 2014-04-26T00:00:00Z
 
 [[quotes]]
 name = "David Caunt"
@@ -24,7 +24,7 @@
 twitter_handle = "@dcaunt"
 quote = "I had a play with Hugo and it was good, uses Markdown files for content"
 link = "https://twitter.com/dcaunt/statuses/406466996277374976"
-date = "2013-11-29"
+date = 2013-11-29T00:00:00Z
 
 [[quotes]]
 name = "David Gay"
@@ -31,7 +31,7 @@
 twitter_handle = "@oddshocks"
 quote = "Hugo is super-rad."
 link = "https://twitter.com/oddshocks/statuses/405083217893421056"
-date = "2013-11-25"
+date = 2013-11-25T00:00:00Z
 
 [[quotes]]
 name = "Diti"
@@ -38,7 +38,7 @@
 twitter_handle = "@DitiPengi"
 quote = "The dev version of Hugo is AWESOME! &lt;3 I promise, I will try to learn go ASAP and help contribute to the project! Just too great!"
 link = "https://twitter.com/DitiPengi/status/472470974051676160"
-date = "2014-05-30"
+date = 2014-05-30T00:00:00Z
 
 [[quotes]]
 name = "Douglas Stephen "
@@ -45,7 +45,7 @@
 twitter_handle = "@DougStephenJr"
 quote = "Even as a long-time Octopress fan, I’ve gotta admit that this project Hugo looks very very cool"
 link = "https://twitter.com/DougStephenJr/statuses/364512471660249088"
-date = "2013-08-05"
+date = 2013-08-05T00:00:00Z
 
 [[quotes]]
 name = "Hugo Rodger-Brown"
@@ -52,7 +52,7 @@
 twitter_handle = "@hugorodgerbrown"
 quote = "Finally someone builds me my own static site generator"
 link = "https://twitter.com/hugorodgerbrown/statuses/364417910153818112"
-date = "2013-05-08"
+date = 2013-05-08T00:00:00Z
 
 [[quotes]]
 name = "Hugo Roy"
@@ -59,7 +59,7 @@
 twitter_handle = "@hugoroyd"
 quote = "Finally the answer to the question my parents have been asking: What does Hugo do?"
 link = "https://twitter.com/hugoroyd/status/501704796727173120"
-date = "2014-08-19"
+date = 2014-08-19T00:00:00Z
 
 [[quotes]]
 name = "Javier Segura"
@@ -66,7 +66,7 @@
 twitter_handle = "@jsegura"
 quote = "Another site generated with Hugo here! I'm getting in love with it."
 link = "https://twitter.com/jsegura/status/465978434154659841"
-date = "2014-05-12"
+date = 2014-05-12T00:00:00Z
 
 [[quotes]]
 name = "Jim Biancolo"
@@ -73,7 +73,7 @@
 twitter_handle = "@jimbiancolo"
 quote = "I’m loving the static site generator renaissance we are currently enjoying. Hugo is new, looks great, written in Go"
 link = "https://twitter.com/jimbiancolo/statuses/408678420348813314"
-date = "2013-05-12"
+date = 2013-05-12T00:00:00Z
 
 [[quotes]]
 name = "Jip J. Dekker"
@@ -80,7 +80,7 @@
 twitter_handle = "@jipjdekker"
 quote = "Building a personal website in Hugo. Works like a charm. And written in @golang!"
 link = "https://twitter.com/jipjdekker/status/413783548735152131"
-date = "2013-12-19"
+date = 2013-12-19T00:00:00Z
 
 [[quotes]]
 name = "Jose Gonzalvo"
@@ -87,7 +87,7 @@
 twitter_handle = "@jgonzalvo"
 quote = "Checking out Hugo; Loving it so far. Like Jekyll but not so blog-oriented and written in go"
 link = "https://twitter.com/jgonzalvo/statuses/408177855819173888"
-date = "2013-12-04"
+date = 2013-12-04T00:00:00Z
 
 [[quotes]]
 name = "Josh Matz"
@@ -94,7 +94,7 @@
 twitter_handle = "@joshmatz"
 quote = "A static site generator without the long build times? Yes, please!"
 link = "https://twitter.com/joshmatz/statuses/364437436870696960"
-date = "2013-08-05"
+date = 2013-08-05T00:00:00Z
 
 [[quotes]]
 name = "Kieran Healy"
@@ -101,7 +101,7 @@
 twitter_handle = "@kjhealy"
 quote = "OK, so in today's speed battle of static site generators, @spf13's hugo is kicking everyone's ass, by miles."
 link = "https://twitter.com/kjhealy/status/437349384809115648"
-date = "2014-02-22"
+date = 2014-02-22T00:00:00Z
 
 [[quotes]]
 name = "Ludovic Chabant"
@@ -108,7 +108,7 @@
 twitter_handle = "@ludovicchabant"
 quote = "Good work on Hugo, I’m impressed with the speed!"
 link = "https://twitter.com/ludovicchabant/statuses/408806199602053120"
-date = "2013-12-06"
+date = 2013-12-06T00:00:00Z
 
 [[quotes]]
 name = "Luke Holder"
@@ -115,7 +115,7 @@
 twitter_handle = "@lukeholder"
 quote = "this is AWESOME. a single little executable and so fast."
 link = "https://twitter.com/lukeholder/status/430352287936946176"
-date = "2014-02-03"
+date = 2014-02-03T00:00:00Z
 
 [[quotes]]
 name = "Markus Eliasson"
@@ -122,7 +122,7 @@
 twitter_handle = "@markuseliasson"
 quote = "Hugo is fast, dead simple to setup and well documented"
 link = "https://twitter.com/markuseliasson/status/501594865877008384"
-date = "2014-08-19"
+date = 2014-08-19T00:00:00Z
 
 [[quotes]]
 name = "mercime"
@@ -129,7 +129,7 @@
 twitter_handle = "@mercime_one"
 quote = "Hugo: Makes the Web Fun Again"
 link = "https://twitter.com/mercime_one/status/500547145087205377"
-date = "2014-08-16"
+date = 2014-08-16T00:00:00Z
 
 [[quotes]]
 name = "Michael Whatcott"
@@ -136,7 +136,7 @@
 twitter_handle = "@mdwhatcott"
 quote = "One more satisfied #Hugo blogger. Thanks @spf13 and friends!"
 link = "https://twitter.com/mdwhatcott/status/469980686531571712"
-date = "2014-05-23"
+date = 2014-05-23T00:00:00Z
 
 [[quotes]]
 name = "Nathan Toups"
@@ -143,7 +143,7 @@
 twitter_handle = "@rojoroboto"
 quote = "I love Hugo! My site is generated with it now http://rjrbt.io"
 link = "https://twitter.com/rojoroboto/status/423439915620106242"
-date = "2014-01-15"
+date = 2014-01-15T00:00:00Z
 
 [[quotes]]
 name = "Ruben Solvang"
@@ -150,7 +150,7 @@
 twitter_handle = "@messo85"
 quote = "#Hugo is the new @jekyllrb / @middlemanapp! Faster, easier and runs everywhere."
 link = "https://twitter.com/messo85/status/472825062027182081"
-date = "2014-05-31"
+date = 2014-05-31T00:00:00Z
 
 [[quotes]]
 name = "Ryan Martinsen"
@@ -157,7 +157,7 @@
 twitter_handle = "@popthestack"
 quote = "Also, I re-launched my blog (it looks the same as before) using Hugo, a *fast* static engine. Very happy with it.  <a href='http://gohugo.io/'>gohugo.io</a>"
 link = "https://twitter.com/popthestack/status/549972754125307904"
-date = "2014-12-30"
+date = 2014-12-30T00:00:00Z
 
 [[quotes]]
 name = "The Lone Cuber"
@@ -164,7 +164,7 @@
 twitter_handle = "@TheLoneCuber"
 quote = "Jekyll is dead to me these days though... long live Hugo! Hugo is *by far* the best in its field. Thanks for making it happen."
 link = "https://twitter.com/TheLoneCuber/status/495716684456398848"
-date = "2014-08-02"
+date = 2014-08-02T00:00:00Z
 
 [[quotes]]
 name = "The Lone Cuber"
@@ -171,7 +171,7 @@
 twitter_handle = "@TheLoneCuber"
 quote = "Finally, a publishing platform that's a joy to use. #NoMoreBarriers"
 link = "https://twitter.com/TheLoneCuber/status/495731334711488512"
-date = "2014-08-02"
+date = 2014-08-02T00:00:00Z
 
 [[quotes]]
 name = "WorkHTML"
@@ -178,4 +178,4 @@
 twitter_handle = "@workhtml"
 quote = "<a href='https://twitter.com/hashtag/Hugo?src=hash'> #Hugo </a> A very good alternative for <a href='https://twitter.com/hashtag/wordpress?src=hash'> #wordpress </a> !!! A fast and modern static website engine <a href='http://gohugo.io/'> gohugo.io </a>"
 link = "https://twitter.com/workhtml/status/563064361301053440"
-date = "2015-02-04"
+date = 2015-02-04T00:00:00Z
--- a/docs/layouts/index.html
+++ b/docs/layouts/index.html
@@ -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>