snakecase
On this page
Snakecase
Expose Go struct fields and methods as snake_case names in templates, for a Django/Jinja-style naming convention.
hooks: snakecase: enabled: true
Once enabled:
{{ page.title }} {{ page.front_matter.get_string("tags") }} {{ get_page("posts/hello").permalink }}
Function and method return values are also wrapped, allowing chained snake_case access. Common value types such as time.Time are preserved for compatibility with filters such as date.