mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Update theme
This commit is contained in:
@@ -57,7 +57,7 @@ Here is the lookup order for the `post` base template:
|
||||
|
||||
## Defining the Base Template
|
||||
|
||||
The following defines a simple base template at `_default/baseof.html`. As a default template, it is the shell from which all your pages will be rendered unless you specify another `*baseof.html` closer to the beginning of the lookup order..
|
||||
The following defines a simple base template at `_default/baseof.html`. As a default template, it is the shell from which all your pages will be rendered unless you specify another `*baseof.html` closer to the beginning of the lookup order.
|
||||
|
||||
{{% code file="layouts/_default/baseof.html" download="baseof.html" %}}
|
||||
```html
|
||||
@@ -101,10 +101,6 @@ From the above base template, you can define a [default list template][hugolists
|
||||
```
|
||||
{{% /code %}}
|
||||
|
||||
{{% note "No Go Context \"the dot\" in Block Definitions" %}}
|
||||
When using the `define` keyword, you do *not* need to use Go templates context reference (i.e., "the dot"). (Read more on "the dot" in [Templates Introduction](/templates/introduction/).)
|
||||
{{% /note %}}
|
||||
|
||||
This replaces the contents of our (basically empty) "main" block with something useful for the list template. In this case, we didn't define a `"title"` block, so the contents from our base template remain unchanged in lists.
|
||||
|
||||
{{% warning %}}
|
||||
|
||||
+1
-1
Submodule themes/gohugoioTheme updated: bd9619584e...8b6b085b4f
Reference in New Issue
Block a user