mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 23:12:10 -05:00
parent
6d2898b33b
commit
16ad628114
2 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,9 @@ Create a directory with the name of the type in `/layouts`. Type is always singu
|
|||
### Create single template
|
||||
Create a file called `single.html` inside your directory. *E.g. `/layouts/post/single.html`*.
|
||||
|
||||
### Create list template
|
||||
Create a file called `post.html` inside the section lists template directory, `/layouts/section`. *E.g. `/layouts/section/post.html`*.
|
||||
|
||||
### Create views
|
||||
Many sites support rendering content in a few different ways, for
|
||||
instance, a single page view and a summary view to be used when
|
||||
|
|
|
@ -864,7 +864,7 @@ $ find themes/zafta -name list.html | xargs ls -l
|
|||
-rw-r--r-- 1 mdhender wheel 0 Nov 27 20:35 themes/zafta/layouts/_default/list.html
|
||||
```
|
||||
|
||||
As with the single article, we have to decide to update `_default/list.html` or create `article/list.html`. We still don't have multiple content types, so let's stay consistent and update the default list template.
|
||||
As with the single article, we have to decide to update `_default/list.html` or create `section/article.html`. We still don't have multiple content types, so let's stay consistent and update the default list template.
|
||||
|
||||
```bash
|
||||
$ vi themes/zafta/layouts/_default/list.html
|
||||
|
|
Loading…
Reference in a new issue