hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

tweets.html (907B)

    1 <div class="flex-ns flex-wrap center mw9">
    2 
    3   {{ $interior_classes := $.Site.Params.flex_box_interior_classes }}
    4 
    5   <h3 class="f2 fw4 white">See what others are saying about Hugo…</h3>
    6 
    7   <div class="flex-ns flex-wrap justify-between">
    8 
    9     {{ range first 4 (sort $.Site.Data.homepagetweets.tweet "date" "desc" )  }}
   10       <div class="homepage-tweet relative {{ $interior_classes }} br1 mid-gray  pv3 nested-links shadow-5">
   11           <div class="absolute top-0 left-0 ma2  o-10">
   12             {{ partial "svg/twitter.svg" . }}
   13           </div>
   14         <blockquote>
   15           <p class="f4">
   16             {{.quote | safeHTML}}
   17           </p>
   18           <cite class="homepage-tweet-attribution gray f6">&#9472; {{ .name }} ({{ .twitter_handle }}) <a href="{{ .link }}">
   19             {{ dateFormat "January 2, 2006" .date }}</a>
   20           </cite>
   21         </blockquote>
   22       </div>
   23     {{ end }}
   24   </div>
   25 </div>