{%- if layout.blog-list-title or page.blog-list-title -%}
{%- assign blTitle = layout.blog-list-title | default: page.blog-list-title -%}
{%- endif -%} <section class=“blog-list”>
{% if blTitle %}<h2>{{ blTitle }}</h2>{% endif -%} <!-- This loops through the paginated posts --> {% for post in paginator.posts -%} <article typeof="BlogPosting"> <header><h3><a class="post-link" property="url" href="{{ post.url | relative_url }}"><span property="headline">{{ post.title | escape }}</span></a></h3> <time property="datePublished" content="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date: "%b %-d, %Y"}}</time> <!-- Google requires that publisher be an Organization vs Person (as the schema.org definition says it can be). Just saying that the Publisher is an Organization is insufficient because Organizations *require* a logo. This is a very stupid can of worms that I am ignoring. Feel free to fix it for yourself, though. That starts with the line below. See https://webmasters.stackexchange.com/questions/110332/personal-blog-using-structured-data-fails-validation-on-publisher/110350#110350 Also, I have made that line invisible because I'm using the site author information, and that info is visible in the footer, so I'm not marking up lots of invisible things that Google frowns on. If you've got a multi-author blog, then of course, you should visibly list the authors. --> <a property="author publisher" typeof="Person"><meta property="name" content="{{ site.author }}" /></a> {% include catag.html list=post -%} </header> <span property="description">{{ post.excerpt }}</span> {% if post.excerpt != post.content -%} <a href="{{ post.url | relative_url }}">Read more</a> {%- endif %} </article> {%- endfor -%}
</section>
<!–
Showing buttons to move to the next and to the previous list of posts (pager buttons).
–> {% if paginator.total_pages > 1 -%} <nav class=“blog-pager”>
{% if paginator.previous_page -%} {% if paginator.first_page -%} <a class="previous" href="{{ paginator.first_page_path | prepend: site.baseurl | replace: '//', '/' }}">First</a> {%- endif %} <a class="previous" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← Newer Posts</a> {%- endif %} {% if paginator.page_trail -%} {% for trail in paginator.page_trail -%} {%- if page.url == trail.path %} <a rel="self" class="selected" title="{{trail.title}}">{{ trail.num }}</a> {%- else %} <a href="{{ trail.path | prepend: site.baseurl | replace: '//', '/' }}" title="{{trail.title}}">{{ trail.num }}</a> {%- endif %} {%- endfor -%} {%- endif %} {% if paginator.next_page -%} <a class="next" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts →</a> {% if paginator.last_page -%} <a class="previous" href="{{ paginator.last_page_path | prepend: site.baseurl | replace: '//', '/' }}">Last</a> {%- endif %} {%- endif %} {%- endif %}
</nav> <p class=“rss-subscribe”>subscribe <a href=“{{ ”/feed.xml“ | relative_url }}”>via RSS</a></p>