diff options
author | Bradley Taunt <bt@btxx.org> | 2024-05-26 08:33:15 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-05-26 08:33:15 -0400 |
commit | 7bc33e9815001f96ef6b22c507cf9bf2194ec684 (patch) | |
tree | 222dd13a36f6ec18e766ba98744fc01cdea5eea7 /_layouts/all_posts.html | |
parent | e417a818e207a6cca6e2f3c471611673ab836a62 (diff) |
Static placement of minima theme, minor customizations
Diffstat (limited to '_layouts/all_posts.html')
-rw-r--r-- | _layouts/all_posts.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/_layouts/all_posts.html b/_layouts/all_posts.html new file mode 100644 index 0000000..c81df2f --- /dev/null +++ b/_layouts/all_posts.html @@ -0,0 +1,61 @@ +--- +layout: base +--- + +<div class="home"> + {%- if page.title -%} + <h1 class="page-heading">{{ page.title }}</h1> + {%- endif -%} + + {{ content }} + + + {% if site.paginate %} + {% assign posts = paginator.posts %} + {% else %} + {% assign posts = site.posts %} + {% endif %} + + + {%- if posts.size > 0 -%} + {%- if page.list_title -%} + <h2 class="post-list-heading">{{ page.list_title }}</h2> + {%- endif -%} + <ul class="post-list"> + {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} + {%- for post in posts -%} + <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 %} + <div class="pager"> + <ul class="pagination"> + {%- if paginator.previous_page %} + <li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li> + {%- else %} + <li><div class="pager-edge">•</div></li> + {%- endif %} + <li><div class="current-page">{{ paginator.page }}</div></li> + {%- if paginator.next_page %} + <li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li> + {%- else %} + <li><div class="pager-edge">•</div></li> + {%- endif %} + </ul> + </div> + {%- endif %} + + {%- endif -%} + +</div> |