mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
2.3 KiB
2.3 KiB
title | date | aliases | weight | notoc | menu | prev | next | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Source Organization | 2013-07-01 |
|
50 | true |
|
/overview/configuration | /content/organization |
Hugo takes a single directory and uses it as the input for creating a complete website.
The top level of a source directory will typically have the following elements:
▸ archetypes/
▸ content/
▸ layouts/
▸ static/
▸ themes/
config.toml
Learn more about the different directories and what their purpose is
- config
- archetypes
- content
- layouts
- static
- themes
Example
An example directory may look like:
.
├── config.toml
├── archetypes
| └── default.md
├── content
| ├── post
| | ├── firstpost.md
| | └── secondpost.md
| └── quote
| | ├── first.md
| | └── second.md
├── layouts
| ├── _default
| | ├── single.html
| | └── list.html
| ├── partials
| | ├── header.html
| | └── footer.html
| ├── taxonomies
| | ├── category.html
| | ├── post.html
| | ├── quote.html
| | └── tag.html
| ├── post
| | ├── li.html
| | ├── single.html
| | └── summary.html
| ├── quote
| | ├── li.html
| | ├── single.html
| | └── summary.html
| ├── shortcodes
| | ├── img.html
| | ├── vimeo.html
| | └── youtube.html
| ├── index.html
| └── sitemap.xml
├── themes
| ├── hyde
| └── doc
└── static
├── css
└── js
This directory structure tells us a lot about this site:
- the website intends to have two different types of content, posts and quotes.
- It will also apply two different indexes to that content, categories and tags.
- It will be displaying content in 3 different views, a list, a summary and a full page view.