hugo

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

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

list.html (1316B)

    1 {{ define "main" }}
    2 <div class="w-100 ph4 ph5-ns pb5 pb6-ns pt1 pt3-ns ">
    3 
    4   <article class="cf pa3 pa4-m pa4-l nested-copy-line-height nested-img">
    5     <h1 class="primary-color-dark">
    6       {{ .Title }}
    7     </h1>
    8     <div class="nested-copy-line-height">
    9       {{ .Content }}
   10     </div>
   11   </article>
   12 
   13   <!-- TODO: May be a good idea in this case to add monthly archives -->
   14 
   15   <div class="flex flex-wrap">
   16       {{/* [wip] add archive lists
   17       <div class="w-100 w-20-ns dn">
   18         <ul>
   19           <li>
   20             <a href="#">
   21               archive section
   22             </a>
   23           </li>
   24         </ul>
   25       </div> */}}
   26 
   27     {{ $interior_classes := $.Site.Params.flex_box_interior_classes }}
   28     <section class="flex-ns flex-wrap justify-between w-100 w-80-nsTK v-top">
   29       {{ $paginator := .Paginate (.Pages | lang.Merge (where .Sites.First.RegularPages "Section" .Section)) -}}
   30       {{ range $paginator.Pages }}
   31         {{ partial "boxes-section-summaries" (dict "context" . "classes" $interior_classes "fullcontent" false) }}
   32       {{ end }}
   33     </section>
   34   </div>
   35   <div class="nested-list-reset nested-links">
   36     {{/* pagination.html: https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/template_embedded.go#L117 */}}
   37     {{ template "_internal/pagination.html" . }}
   38   </div>
   39 
   40 </div>
   41 {{ end }}