Archetypes

Customize archetype templates for blog, default, and docs.

On this page

  1. ..
  2. ├── blog.md
  3. ├── default.md
  4. └── docs.md

See also the Hugo docs: Archetypes.

Customize archetypes

blog.md

  1. ---
  2. title: "{{ replace .Name "-" " " | title }}"
  3. description: ""
  4. lead: ""
  5. date: {{ .Date }}
  6. lastmod: {{ .Date }}
  7. draft: true
  8. weight: 50
  9. images: ["{{ .Name | urlize }}.jpg"]
  10. contributors: []
  11. ---
  12. {{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" class="wide" >}}

default.md

  1. ---
  2. title: "{{ replace .Name "-" " " | title }}"
  3. description: ""
  4. date: {{ .Date }}
  5. lastmod: {{ .Date }}
  6. draft: true
  7. images: []
  8. ---

docs.md

  1. ---
  2. title: "{{ replace .Name "-" " " | title }}"
  3. description: ""
  4. lead: ""
  5. date: {{ .Date }}
  6. lastmod: {{ .Date }}
  7. draft: true
  8. images: []
  9. menu:
  10. docs:
  11. parent: ""
  12. weight: 999
  13. toc: true
  14. ---
  15. {{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" >}}