-
There are two variables used in the main block of layouts.html that don't seem to do anything.. Line 5 {{ .Title }}Nothing appears unless I add a title variable to config.toml which isn't in the default (unless I'm missing something). Line 8 {{ .Params.Lead | safeHTML }} There doesn't seem to be a lead variable in params.toml either but when I add one nothing appears. Fairly new to Hugo so not sure what the issue is. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
h-enk
Feb 19, 2021
Replies: 1 comment 1 reply
-
Hey Martyn,
So, when you update the frontmatter (title and lead e.g.) in the latter, it will be parsed by the homepage template and will be reflected in the homepage build. Hope this clarifies. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mshiner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Martyn,
./layouts/index.html
is the homepage template../content/_index.md
is where you add content and front matter to the homepage.So, when you update the frontmatter (title and lead e.g.) in the latter, it will be parsed by the homepage template and will be reflected in the homepage build.
Hope this clarifies.