Layouts

Customize layouts.

..
├── _default/
│   ├── markup/
│   │   ├── render-image.html
│   │   └── render-link.html
│   ├── baseof.html
│   ├── list.html
│   └── single.html
├── blog/
│   └── single.html
├── categories/
│   ├── list.html
│   └── terms.html
├── partials/
│   ├── content/
│   ├── footer/
│   │   ├── esbuild.html
│   │   ├── footer.html
│   │   └── script-footer.html
│   ├── head/
│   │   ├── body-class.html
│   │   ├── favicons.html
│   │   ├── head.html
│   │   ├── libsass.html
│   │   ├── opengraph.html
│   │   ├── resource-hints.html
│   │   ├── script-header.html
│   │   ├── seo.html
│   │   ├── structured-data.html
│   │   ├── stylesheet.html
│   │   └── twitter_cards.html
│   ├── header/
│   │   ├── alert.html
│   │   └── header.html
│   └── sidebar/
│   └── email.html
├── shortcodes/
├── 404.html
├── index.headers
├── index.html
├── index.redirects
├── robots.txt
├── rss.xml
└── 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

Add 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

User-agent: *
{{ if eq (hugo.Environment) "production" -}}
Allow: /
{{ else -}}
Disallow: /
{{ end }}
Sitemap: {{ "sitemap.xml" | absURL -}}

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

Edit this page on GitHub