123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <div class="list-item">
- {% set header_image = page.header.header_image|defined(true) %}
- {% set header_image_width = page.header.header_image_width|defined(900) %}
- {% set header_image_height = page.header.header_image_height|defined(300) %}
- {% set header_image_file = page.header.header_image_file %}
- <div class="list-blog-header">
- <span class="list-blog-date">
- <span>{{ page.date|date("d") }}</span>
- <em>{{ page.date|date("M") }}</em>
- </span>
- {% if page.header.link %}
- <h4>
- {% if page.header.continue_link is not sameas(false) %}
- <a href="{{ page.url }}"><i class="fa fa-angle-double-right"></i></a>
- {% endif %}
- <a href="{{ page.header.link }}">{{ page.title }}</a>
- </h4>
- {% else %}
- <h4><a href="{{ page.url }}">{{ page.title }}</a></h4>
- {% endif %}
- {% if page.taxonomy.tag %}
- <span class="tags">
- {% for tag in page.taxonomy.tag %}
- <a href="{{ blog.url }}/tag{{ config.system.param_sep }}{{ tag }}">{{ tag }}</a>
- {% endfor %}
- </span>
- {% endif %}
- {% if header_image %}
- {% if header_image_file %}
- {% set header_image_media = page.media.images[header_image_file] %}
- {% else %}
- {% set header_image_media = page.media.images|first %}
- {% endif %}
- {{ header_image_media.cropZoom(header_image_width, header_image_height).html }}
- {% endif %}
- </div>
- <div class="list-blog-padding">
- {% if page.header.continue_link is sameas(false) %}
- {{ page.content }}
- {% if not truncate %}
- {% set show_prev_next = true %}
- {% endif %}
- {% elseif truncate and page.summary != page.content %}
- {{ page.summary }}
- <p><a href="{{ page.url }}">Continue Reading...</a></p>
- {% elseif truncate %}
- {% if page.summary != page.content %}
- {{ page.content|truncate(550) }}
- {% else %}
- {{ page.content }}
- {% endif %}
- <p><a href="{{ page.url }}">Continue Reading...</a></p>
- {% else %}
- {{ page.content }}
- {% set show_prev_next = true %}
- {% endif %}
- {% if show_prev_next %}
- <p class="prev-next">
- {% if not page.isFirst %}
- <a class="button" href="{{ page.nextSibling.url }}"><i class="fa fa-chevron-left"></i> Next Post</a>
- {% endif %}
- {% if not page.isLast %}
- <a class="button" href="{{ page.prevSibling.url }}">Previous Post <i class="fa fa-chevron-right"></i></a>
- {% endif %}
- </p>
- {% endif %}
- </div>
- </div>
|