Layouts

Customize layouts.

On this page

  1. ..
  2. ├── _default/
  3. ├── baseof.html
  4. ├── list.html
  5. └── single.html
  6. ├── blog/
  7. ├── list.html
  8. └── single.html
  9. ├── contributors/
  10. └── list.html
  11. ├── docs/
  12. ├── list.html
  13. └── single.html
  14. ├── partials/
  15. ├── footer/
  16. ├── footer.html
  17. └── script-footer.html
  18. ├── head/
  19. ├── favicons.html
  20. ├── head.html
  21. ├── opengraph.html
  22. ├── resource-hints.html
  23. ├── script-header.html
  24. ├── seo.html
  25. ├── structured-data.html
  26. ├── stylesheet.html
  27. └── twitter_cards.html
  28. ├── header/
  29. ├── alert.html
  30. └── header.html
  31. ├── main/
  32. └── sidebar/
  33. ├── shortcodes/
  34. ├── alert.html
  35. ├── btn-copy.html
  36. ├── email.html
  37. ├── img-simple.html
  38. └── img.html
  39. ├── 404.html
  40. ├── index.headers
  41. ├── index.html
  42. ├── index.redirects
  43. ├── robots.txt
  44. ├── rss.xml
  45. └── sitemap.xml

See also the Hugo docs: Templates.

Customize _default

See the Hugo docs: Base Templates and Blocks

Customize blog

See the Hugo docs: Single Page Templates

Customize categories

See the Hugo docs: Taxonomy Templates

Customize partials

See the Hugo docs: Partial Templates

Customize shortcodes

See the Hugo docs: Create Your Own Shortcodes

Customize 404.html

See the Hugo docs: Custom 404 Page

Customize index.headers

See: Netlify.

Customize index.html

See the Hugo docs: Homepage Template

Customize index.redirects

See: Netlify.

Customize robots.txt

  1. User-agent: *
  2. {{ if eq (hugo.Environment) "production" -}}
  3. Allow: /
  4. {{ else -}}
  5. Disallow: /
  6. {{ end }}
  7. Sitemap: {{ "sitemap.xml" | relURL -}}

See also the Hugo docs: Robots.txt File

Customize rss.xml

See the Hugo docs: RSS Templates

Customize sitemap.xml

See the Hugo docs: Sitemap Template