layout: html_scaffold
<main class=“landing-page” aria-label=“Content”>
{%- include landing.html -%} <div class="wrapper home-wrapper"> {% assign featured_posts = site.posts | where: "featured",true %} {%- if featured_posts.size > 0 -%} <!-- Add Featured Posts here --> <div class="featuredposts-container"> <h1>Featured</h1> <ul class="post-list"> {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} {%- for post in featured_posts limit: site.recent_posts_count -%} <li> <span class="post-meta">{{ post.date | date: date_format }}</span> <h3> <a class="post-link" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a> </h3> {%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%} </li> {%- endfor -%} </ul> </div> {%- endif -%} {%- if site.posts.size > 0 -%} <!-- Add Recent Posts here --> <div class="recentposts-container"> <h1>Recent Posts</h1> <ul class="post-list"> {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} {% if site.recent_posts_count %} {% assign posts_count = site.recent_posts_count %} {% else %} {% assign posts_count = 10 %} {% endif %} {%- for post in site.posts limit: site.recent_posts_count -%} <li> <span class="post-meta">{{ post.date | date: date_format }}</span> <h3> <a class="post-link" href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a> </h3> {%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%} </li> {%- endfor -%} </ul> {% if site.paginate_root_path %} <a href="{{ site.paginate_root_path | relative_url }}"> View all posts </a> {% endif %} </div> {%- endif -%} </div>
</main>