{%- comment -%} This is a card displaying post metadata as well as the title image. Parameters: post: The post which sould be displayed on the card {%- endcomment -%} {%- if include.post.title_image == "default" %} {%- assign img_url = site.directory.images | append: 'HIFIS_LOGO_news_cards.svg' | strip | relative_url -%} {%- else -%} {%- assign img_url = site.directory.large_images | append: "phone/" | append: include.post.title_image | strip | relative_url -%} {%- endif -%} <div class="card top-image-card {{ include.class }}"> <a href="{{ include.post.url | relative_url }}" class="stretched-link"></a> <img class="card-img-top card-img-equal" src="{{ img_url }}" alt="Title image"> <div class="card-img-overlay"> <h3 class="card-title text-white" style="text-shadow: 0px 0px 20px #000000, 0px 0px 20px #000000, 0px 0px 20px #000, 0px 0px 20px #000">{{ include.post.title }}</h3> </div> {%- if include.excerpt -%} <div class="card-body"> <p>{{ include.post.excerpt }}</p> </div> {%- endif -%} </div>