Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifhascontent compatibility #21

Open
NikkyAI opened this issue Jan 12, 2017 · 0 comments
Open

ifhascontent compatibility #21

NikkyAI opened this issue Jan 12, 2017 · 0 comments

Comments

@NikkyAI
Copy link

NikkyAI commented Jan 12, 2017

are ifhascontent and if `elsif compatible
or is there a elsif equivalent?

or can i do for example this?

 {% ifhascontent background or page.background_enabled %}
    <div id="{{id}}" class="parallax__layer parallax__layer--back1">
        {% contentblock background | markdownify %}
    </div>
    {% endifhascontent %}

or

 {% ifhascontent background %}
 {% elsifhasconent %}
 {% endifhascontent %}

and can those tags be made useable in the if tag ?

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

No branches or pull requests

1 participant