aboutsummaryrefslogtreecommitdiff
path: root/_layouts/all_posts.html
diff options
context:
space:
mode:
authorBradley Taunt <brad@serpapi.com>2024-06-13 14:57:38 -0400
committerBradley Taunt <brad@serpapi.com>2024-06-13 14:57:38 -0400
commit26c7db12364e8eba08e2f8e85bb534ed735a0be8 (patch)
tree0e1d2f6e2456ca2266993eef72881057ee5b3dd9 /_layouts/all_posts.html
parenta134c38317e808d6535af990cc505dab1bc7bbfe (diff)
Major overhaul and cleanups
Diffstat (limited to '_layouts/all_posts.html')
-rw-r--r--_layouts/all_posts.html64
1 files changed, 9 insertions, 55 deletions
diff --git a/_layouts/all_posts.html b/_layouts/all_posts.html
index c81df2f..9c29be9 100644
--- a/_layouts/all_posts.html
+++ b/_layouts/all_posts.html
@@ -1,61 +1,15 @@
---
-layout: base
+layout: default
---
-<div class="home">
- {%- if page.title -%}
- <h1 class="page-heading">{{ page.title }}</h1>
- {%- endif -%}
+<h1>{{ page.title }}</h1>
- {{ 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 -%}
+{{ content }}
+{% for post in site.posts %}
+<div class="post">
+ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
+ <span class="post-date">{{ post.date | date: "%B %-d, %Y" }}</span>
</div>
+{% endfor %}
+