Skip to content

feat: enable Jekyll-compatible dot notation in assign tags - #120

Merged
osteele merged 1 commit into
mainfrom
fix-60-assign-dot
Aug 12, 2026
Merged

feat: enable Jekyll-compatible dot notation in assign tags#120
osteele merged 1 commit into
mainfrom
fix-60-assign-dot

Conversation

@osteele

@osteele osteele commented Feb 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Updates the liquid template engine from v1.6.0 to v1.8.0
  • Enables Jekyll extensions in the liquid engine, including support for dot notation in assign tags (e.g., {% assign my_obj.prop = "value" %})
  • Updates CHANGELOG and Contributors

Closes #60

Details

The liquid v1.8.0 release adds EnableJekyllExtensions() which supports dot notation on the left-hand side of assign statements. This is now enabled by default in gojekyll's liquid engine.

Note: Ruby Jekyll does not actually support {% assign page.canonical_url = page.url %} (assigning to the page drop's properties). This works for custom variables but the page drop remains read-only, matching Jekyll's behavior.

Test plan

  • Added test page with dot notation assign to testdata site
  • All existing tests pass
  • Build succeeds

@osteele
osteele force-pushed the fix-60-assign-dot branch from 5615794 to ae63630 Compare August 12, 2026 16:25
@osteele
osteele merged commit e9c8b1a into main Aug 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: object attribute assign

1 participant