aboutsummaryrefslogblamecommitdiffstats
path: root/uikit/templates/html_macros.html
blob: 0f2a45fd2b81dc19c42e8888522a92c9d2eb1fa8 (plain) (tree)
1
2
3
4
5
6
7






                                                                                                                                                     
{% macro get_meta(object) -%}

  {% if object.tags %} {% set tags=object.tags|join(", ")|e %} <meta name="tags" content="{{ tags }}" /> {% endif %}
  {% if object.summary %} {% set summary=object.summary|striptags()|truncate(159)|e %}<meta name="description" content="{{ summary }}" /> {% endif %}
  {% if object.category %} {% set category=object.tags|join(", ")|e %}<meta name="category" content="{{object.category}}" /> {% endif %}
  {% if object.categories %} {% set categories=object.categories|join(", ")|e %}<meta name="tags" content="{{object.categories}}" /> {% endif %}
{%- endmacro %}