forked from mirrors/hugo-tufte
Initial commit.
This commit is contained in:
commit
b3a2e36507
50 changed files with 2152 additions and 0 deletions
layouts/_default
21
layouts/_default/paginate.list.html
Normal file
21
layouts/_default/paginate.list.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{ .Title }}
|
||||
<!-- {{ template "_internal/pagination.html" }} -->
|
||||
Hello this is a list of content.
|
||||
{{ .TableOfContents }}
|
||||
|
||||
{{ $paginator := .Paginate ( (.Data.Pages.GroupByDate "2006") ) }}
|
||||
|
||||
<ul>
|
||||
<li>PageNumber: {{ $paginator.PageNumber }}</li>
|
||||
<li>URL: {{ $paginator.URL}}</li>
|
||||
<li>Pages: {{ $paginator.Pages }}</li>
|
||||
<li>TotalPages: {{ $paginator.TotalPages }}</li>
|
||||
</ul>
|
||||
|
||||
{{ range $paginator.PageGroups }}
|
||||
<h2>{{ .Key }}</h2>
|
||||
{{ range .Pages }}
|
||||
<br/>
|
||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue