Hello everyone;
might be simple; but I’m more comfortable with file configuration than twig and php
anyway…
in the file templates/partials/metatag.html.twig
the behaviour I expect as a result is :
if page/post contain a description show this description as a metatag
else show the meta description of the site.
I try to make something like this :
...
{% if meta.description %}description="{% if header.description %}{{ header.description }}{% else %}{{ meta.description }}{% endif %}" {% endif %}
...
I also tried something like this
which make me a little bit closer because the page/post part works but the meta.description don’t make it.
...
<meta name="description" content="{% if header.description %}{{ header.description|e('html') }}{% else %}{{ meta.description|e('html') }}{% endif %}">
...
Any finger pointing I’m a good direction will be appreciate
Have a nice day
J.