templates/Content/Public/Blog/post_video.html.twig line 1

Open in your IDE?
  1. {%- set blogPost = post.translate() -%}
    <div class="blog-post row post-video-type">
        <div class="col-12">
            {% set featuredMedia = post.featured %}
            {% if featuredMedia %}
                {% if 'video_youtube' == featuredMedia.type %}
                    {{ featuredMedia.embedCode|raw }}
                {% endif %}
            {#{% else %}#}
                {#<img src="{{ asset('assets/static/placeholder-video.png') }}" class="img-fluid" alt="..."/>#}
            {% endif %}
            <h3 class="blog-title {{ featuredMedia ? 'mt-3' : 'mb-5' }}">
                {% if featuredMedia %}
                    <a href="{{ featuredMedia.remoteUrl }}"
                       {% if not is_local_url(featuredMedia.remoteUrl) %}rel="nofollow noopener"{% endif %}
                       target="_blank">{{ blogPost.title }}</a>
                {% else %}
                    <a href="{{ path('mdl_public_blog_view', { 'slug': blogPost.slug }) }}">{{ blogPost.title }}</a>
                {% endif %}
            </h3>
            <div class="excerpt">
                {{ blogPost.excerpt|raw }}
            </div>
        </div>
    </div>
    <hr class="mb-5" />