{%- if page %} {%- set resource = page %} {%- set resource_title = resource.title %} {%- set resource_path = resource.path %} {%- elif section %} {%- set resource = section %} {%- set resource_title = resource.title %} {%- set resource_path = resource.path %} {%- elif term %} {%- set resource = term %}{# taxonomy term has only 'name', 'slug' and 'path' properties #} {%- set resource_path = resource.path %} {%- set resource_title = resource.name %} {%- elif taxonomy %} {%- set resource = taxonomy %}{# taxonomy has only 'name' and 'slug' properties #} {%- set resource_path = '/' ~ resource.name ~ '/' %} {%- set resource_title = resource.name %} {%- endif %} {%- set rtl_langs = ["ar", "arc", "dv", "fa", "ha", "he", "khw", "ks", "ku", "ps", "ur", "yi"] -%}
{% block meta_description %} {% endblock %} {% block rss %} {% endblock %} {%- set preview_image = 'images/screenshots/prague.jpg' -%} {%- if resource.extra.preview_image -%} {%- set preview_image = resource.extra.preview_image -%} {%- elif resource.assets %} {%- set basename = resource.assets[0] | split(pat='/') | last %} {%- if basename is ending_with('.jpg') or basename is ending_with('.jpeg') or basename is ending_with('.png') or basename is ending_with('.webp') %} {%- set preview_image = resource_path ~ basename -%} {%- endif %} {%- endif %} {%- if resource.description -%} {%- endif -%} {%- if resource.description -%} {%- endif -%} {% if resource.date -%} {%- endif -%} {%- block meta -%}{%- endblock %}