A very basic Hugo theme, with bare-boned layouts and no CSS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
587 B

  1. {{/* This will override the default value set in baseof.html; i.e., "{{.Site.Title}}" in the original example */}}
  2. {{ define "title" }}
  3. {{ .Title }} – {{ .Site.Title }}
  4. {{ end }}
  5. {{ define "content-header" }}
  6. <h1 id="title">{{ .Title }}</h1>
  7. {{ end }}
  8. {{ define "content" }}
  9. <header class="list-content">
  10. {{ .Content }}
  11. </header>
  12. {{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }}
  13. {{ if ne $index 0 }}
  14. {{ end }}
  15. {{ .Render "summary" }}
  16. {{ end }}
  17. {{ end }}
  18. {{ define "content-footer" }}
  19. {{ partial "paginator.html" .Paginator }}
  20. {{ end }}