mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
Add missing backtick in templates/views.md
This commit is contained in:
1 parent
bf88e772e4
commit
816d207f07
1 file changed
+2
-2
@@ -27,7 +27,7 @@ The following are common use cases for content views:
|
|||||||
|
|
||||||
## Create a Content View
|
## Create a Content View
|
||||||
|
|
||||||
To create a new view, create a template in each of your different content type directories with the view name. The following example contains an "li" view and a "summary" view for the `post` and `project` content types. As you can see, these sit next to the [single content view][single] template, `single.html. You can even provide a specific view for a given type and continue to use the `_default/single.html` for the primary view.
|
To create a new view, create a template in each of your different content type directories with the view name. The following example contains an "li" view and a "summary" view for the `post` and `project` content types. As you can see, these sit next to the [single content view][single] template, `single.html`. You can even provide a specific view for a given type and continue to use the `_default/single.html` for the primary view.
|
||||||
|
|
||||||
```
|
```
|
||||||
▾ layouts/
|
▾ layouts/
|
||||||
@@ -118,4 +118,4 @@ Continuing on the previous example, we can change our render function to use a s
|
|||||||
[spfsourcesection]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/section.html
|
[spfsourcesection]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/section.html
|
||||||
[spfsourcesummary]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/summary.html
|
[spfsourcesummary]: https://github.com/spf13/spf13.com/blob/master/layouts/_default/summary.html
|
||||||
[summaries]: /content-management/summaries/
|
[summaries]: /content-management/summaries/
|
||||||
[taxonomylists]: /templates/taxonomy-templates/
|
[taxonomylists]: /templates/taxonomy-templates/
|
||||||
Reference in new issue
Block a user