Skip to content

Instantly share code, notes, and snippets.

@jsonbecker
Created August 8, 2023 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsonbecker/a346650a443eee5301181ed40d8a5d02 to your computer and use it in GitHub Desktop.
Save jsonbecker/a346650a443eee5301181ed40d8a5d02 to your computer and use it in GitHub Desktop.
One page at a time, chronological for Tufte
{{ partial "head.html" . }}
<body>
<div class="content list h-feed">
{{ partial "header.html" . }}
{{ $paginator := .Paginate (where .Site.Pages "Type" "post").ByDate.Reverse 1 }}
{{ range $paginator.Pages }}
{{ partial "li.html" . }}
{{ end }}
{{ partial "pagination.html" . }}
{{ partial "footer.html" . }}
</div>
{{ partial "custom_footer.html" . }}
{{ range .Site.Params.plugins_js }}
<script src="{{ . }}"></script>
{{ end }}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment