Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for _build front-matter (Hugo 0.65+) #358

Closed
kaushalmodi opened this issue May 2, 2020 · 3 comments
Closed

Add support for _build front-matter (Hugo 0.65+) #358

kaushalmodi opened this issue May 2, 2020 · 3 comments

Comments

@kaushalmodi
Copy link
Owner

kaushalmodi commented May 2, 2020

https://gohugo.io/news/0.65.0-relnotes/

https://gohugo.io/content-management/build-options/

@kaushalmodi
Copy link
Owner Author

kaushalmodi commented Jan 13, 2022

There hasn't been a need to add the _build front-matter in any of my posts in past few years. So adding special keywords just for this is not worth the time right now.

#523 though adds few tests, that shows that _build front-matter can already be added using :EXPORT_HUGO_CUSTOM_FRONT_MATTER:.

Examples:

  • :EXPORT_HUGO_CUSTOM_FRONT_MATTER: :_build '((list . nil))
  • :EXPORT_HUGO_CUSTOM_FRONT_MATTER: :_build '((render . nil))

kaushalmodi added a commit that referenced this issue Jan 13, 2022
@kaushalmodi
Copy link
Owner Author

kaushalmodi commented Jan 13, 2022

Valid values of _build.list

See https://gohugo.io/content-management/build-options/#list

  • true or always (default)
  • false or never
  • local

ref

Valid values of _build.render

See https://gohugo.io/content-management/build-options/#render

  • true or always (default)
  • false or never
  • link

ref

kaushalmodi added a commit that referenced this issue Jan 13, 2022
- Don't use inline shortcodes; they look messy and are not very
  reusable
- Add a better and proper "getpage" shortcode.

Ref #358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant