mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	A couple of internal links use `#toc_4` to attempt to locate a document element within another document page. In both of these instances, there is no element on the linked to pages with the id `#toc_4`. This commit updates those links with the document elements which were the original intended links, meaning these links now take you directly to the intended element. Signed-off-by: mattjmcnaughton <mattjmcnaughton@gmail.com>
		
			
				
	
	
		
			95 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			95 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| aliases:
 | |
| - /doc/source-directory/
 | |
| lastmod: 2015-02-09
 | |
| date: 2013-07-01
 | |
| menu:
 | |
|   main:
 | |
|     parent: getting started
 | |
| next: /content/organization
 | |
| notoc: true
 | |
| prev: /overview/configuration
 | |
| title: Source Organization
 | |
| weight: 50
 | |
| ---
 | |
| 
 | |
| 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/
 | |
|     ▸ data/
 | |
|     ▸ layouts/
 | |
|     ▸ static/
 | |
|     ▸ themes/
 | |
|       config.toml
 | |
| 
 | |
| Learn more about the different directories and what their purpose is:
 | |
| 
 | |
| * [config](/overview/configuration/)
 | |
| * [data](/extras/datafiles/)
 | |
| * [archetypes](/content/archetypes/)
 | |
| * [content](/content/organization/)
 | |
| * [layouts](/layout/overview/)
 | |
| * [static](/themes/creation#static)
 | |
| * [themes](/themes/overview/)
 | |
| 
 | |
| 
 | |
| ## Example
 | |
| 
 | |
| An example directory may look like:
 | |
| 
 | |
|     .
 | |
|     ├── config.toml
 | |
|     ├── archetypes
 | |
|     |   └── default.md
 | |
|     ├── content
 | |
|     |   ├── post
 | |
|     |   |   ├── firstpost.md
 | |
|     |   |   └── secondpost.md
 | |
|     |   └── quote
 | |
|     |   |   ├── first.md
 | |
|     |   |   └── second.md
 | |
|     ├── data
 | |
|     ├── 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:
 | |
| 
 | |
| 1. The website intends to have two different types of content: *posts* and *quotes*.
 | |
| 2. It will also apply two different taxonomies to that content: *categories* and *tags*.
 | |
| 3. It will be displaying content in 3 different views: a list, a summary and a full page view.
 |