Fix post
This commit is contained in:
parent
133341bad9
commit
773d0a21ea
2 changed files with 14 additions and 10 deletions
|
@ -48,15 +48,19 @@ It’s a simple filter that accepts a boolean and returns `true` or `false` as a
|
|||
|
||||
Before:
|
||||
|
||||
<div v-pre markdown="1">
|
||||
```language-twig
|
||||
{% raw %}{{ filter.isArchive ? 'true' : 'false' }}{% endraw %}
|
||||
```
|
||||
</div>
|
||||
|
||||
After:
|
||||
|
||||
<div v-pre markdown="1">
|
||||
```language-twig
|
||||
{% raw %}{{ filter.isArchive|boolean_string }}{% endraw %}
|
||||
```
|
||||
</div>
|
||||
|
||||
This can then be used to generate output like this, whereas having blank values would have resulted in errors when importing to Gmail.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue