Skip to content

Conversation

@fj
Copy link
Contributor

@fj fj commented Aug 8, 2022

The documentation doesn't currently say one way or the other whether block definitions inside templates are permissible. This clarifies that they are not.

The documentation doesn't currently say one way or the other whether block definitions inside templates are permissible. This clarifies that they are not.
@mcexit
Copy link

mcexit commented Sep 18, 2022

I think that this makes it more confusing in some ways. You can use blocks in partials, just not override them from the layout templates. Blocks are still useful in partials to define templates and execute them in place. I think if you clarify this better it could be helpful, but it isn't clearly defined what the limitations are and why.

@fj
Copy link
Contributor Author

fj commented Sep 18, 2022

I think that this makes it more confusing in some ways. You can use blocks in partials, just not override them from the layout templates. Blocks are still useful in partials to define templates and execute them in place. I think if you clarify this better it could be helpful, but it isn't clearly defined what the limitations are and why.

That's good feedback, thanks @mcexit. If there's agreement from a committer on this front, I can update the PR accordingly.

@jmooring
Copy link
Member

Please submit issues and PRs related to documentation here:
https://github.com/gohugoio/hugoDocs

@jmooring jmooring closed this May 20, 2023
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants