Replies: 1 comment
-
|
I believe in LiquidJS you can use the ---
title: Custom title
---
title={{ title | default: site.title }}
description={{ description | default: site.description }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just switch to liquid from nunjucks, I read the documentation, Liquid is also support logic operator but the result is different.
{{ description or site.description }}Nunjucks will show
descriptionif not empty, if empty will just showsite.description, but in Liquid, it just showtrue. Is this how liquid work?Beta Was this translation helpful? Give feedback.
All reactions