11ty / eleventy-base-blog

A starter repository for a blog web site using the Eleventy static site generator.
https://eleventy-base-blog.netlify.app/
MIT License
1.21k stars 619 forks source link

changes njk if statements to inline expressions #97

Closed glgoose closed 2 years ago

glgoose commented 3 years ago

Implements ternary-like format as described in: https://mozilla.github.io/nunjucks/templating.html#if-expression

zachleat commented 2 years ago

Ah, sorry—happy to entertain pushback/discussion but I find these expressions to be much less readable (especially for folks that are familiar with liquid!)

zachleat commented 2 years ago

This is an automated message to let you know that a response was posted to your issue and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.

If the response is an acceptable resolution—great! But if you’re disagree or are still having problems, do not let the issue’s closing deter you! Post another comment and we will reopen the issue. Thanks!