Sha256: 16e5392ea134d5a9c6cb5fa08025db79f174fb4afc509092da4521c204162595

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

<div class="card mb-4" style="min-width: 15rem; max-width: 30rem;">
    {% if include.image != nil %}
    <img class="card-img-top" src="{{ include.image }}" alt="Card preview image">
    {% endif %}

    <div class="card-body">
        <h5 class="card-title">
            <a href="{{site.baseurl}}{{ include.url }}" class="">{{ include.title }}</a>
        </h5>
        {% if include.date != nil %}
        <p class="card-text">
            <small class="text-muted">
                Added on {{ include.date | date: "%-d %B %Y" }}
            </small>
        </p>
        {% endif %}
        <p class="card-text">
            {{ include.content | truncate: site.max_card_preview_length, "..." | markdownify }}
        </p>
    </div>

    <div class="card-footer bg-transparent">
        <center>
            {% if include.pdf != nil %}
            <a href="{{ include.pdf }}" class="card-link">PDF</a>
            {% endif %}
            {% if include.video != nil %}
            <a href="{{ include.video }}" class="card-link">Video</a>
            {% endif %}
        </center>
    </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
just-the-cards-0.2.6 _includes/card_preview.html
just-the-cards-0.2.5 _includes/card_preview.html
just-the-cards-0.2.4 _includes/card_preview.html
just-the-cards-0.2.2 _includes/card_preview.html
just-the-cards-0.2.1 _includes/card_preview.html