mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
8a48412c44
commit
dec9749bbc
2 changed files with 28 additions and 3 deletions
|
@ -10,11 +10,11 @@ menu:
|
||||||
parent: layout
|
parent: layout
|
||||||
next: /templates/functions
|
next: /templates/functions
|
||||||
prev: /templates/go-templates
|
prev: /templates/go-templates
|
||||||
title: Hugo Templates
|
title: Ace Templates
|
||||||
weight: 17
|
weight: 17
|
||||||
---
|
---
|
||||||
|
|
||||||
In addition to [Go templates](/templates/go-templates) and Amber[^needs-doc] templates, Hugo supports the powerful Ace templates.
|
In addition to [Go templates](/templates/go-templates) and [Amber](/templates/amber-templates) templates, Hugo supports the powerful Ace templates.
|
||||||
|
|
||||||
For template documentation, follow the links from the [Ace project](https://github.com/yosssi/ace).
|
For template documentation, follow the links from the [Ace project](https://github.com/yosssi/ace).
|
||||||
|
|
||||||
|
@ -65,5 +65,4 @@ Some examples for the layout files above:
|
||||||
|
|
||||||
|
|
||||||
[^ace-theme]: Note that the `html` suffix is needed, even if the filename is suffixed `ace`. This does not work from inside a theme, see [issue 763](https://github.com/spf13/hugo/issues/763).
|
[^ace-theme]: Note that the `html` suffix is needed, even if the filename is suffixed `ace`. This does not work from inside a theme, see [issue 763](https://github.com/spf13/hugo/issues/763).
|
||||||
[^needs-doc]: Needs documentation! Contribution welcomed, see [issue 1064](https://github.com/spf13/hugo/issues/1064).
|
|
||||||
|
|
||||||
|
|
26
docs/content/templates/amber.md
Normal file
26
docs/content/templates/amber.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
aliases:
|
||||||
|
- /doc/templates/amber
|
||||||
|
- /layout/templates/amber
|
||||||
|
- /layout/amber/
|
||||||
|
date: 2015-07-20
|
||||||
|
linktitle: Amber templates
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: layout
|
||||||
|
next: /templates/functions
|
||||||
|
prev: /templates/go-templates
|
||||||
|
title: Amber Templates
|
||||||
|
weight: 18
|
||||||
|
---
|
||||||
|
|
||||||
|
Amber templates are another template type which Hugo supports, in addition to [Go templates](/templates/go-templates) and [Ace templates](/templates/ace-templates) templates.
|
||||||
|
|
||||||
|
For template documentation, follow the links from the [Amber project](https://github.com/eknkc/amber)
|
||||||
|
|
||||||
|
* Amber templates must be named with the amber-suffix, e.g. `list.amber`
|
||||||
|
* Partials in Amber or HTML can be included with the Amber template syntax:
|
||||||
|
* `import ../partials/test.html `
|
||||||
|
* `import ../partials/test_a.amber `
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue