{%- comment -%} This is a card displaying post title and date. Parameters: post: The post which sould be displayed on the card. exclude_date: Do not show the date on the image card. {%- endcomment -%} {%- if include.post.title_image == "default" %} {%- assign img_url = site.directory.images | append: 'HIFIS_LOGO_news_cards_equal.svg' | strip | relative_url -%} {%- else -%} {%- assign img_url = site.directory.large_images | append: "phone/" | append: include.post.title_image | strip | relative_url -%} {%- endif -%} {%- if include.exclude_date | default: false -%} {%- assign justify-content-class = "justify-content-center" -%} {%- endif -%}
Title image for {{ post.title }}
{%- unless include.exclude_date | default: false -%}
{{ include.post.date | date: "%d. %b. %y" }}
{%- endunless -%}