Skip to content

Commit

Permalink
Remove jekyll-paginate-v2 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Straughan committed May 10, 2023
1 parent 4223c99 commit a8d0c32
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 77 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ source "https://rubygems.org"

group :jekyll_plugins do
gem "jekyll-sitemap"
gem "jekyll-paginate-v2"
end

gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Expand Down
12 changes: 0 additions & 12 deletions _configs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,3 @@ collections:
updates:
output: true
permalink: /updates/:year/:month/:day/:title

# Pagination
pagination:
enabled: true
per_page: 8
permalink: '/:num/' # Pages are index.html inside this folder (default)
title: ':title - page :num'
sort_field: 'date'
sort_reverse: true
category: 'posts'
extension: html
indexpage: 'index'
60 changes: 0 additions & 60 deletions _layouts/updates.html

This file was deleted.

62 changes: 58 additions & 4 deletions updates.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,62 @@
---
layout: updates
layout: page
title: Updates
permalink: /updates/
pagination:
enabled: true
collection: updates
---

<!-- Section: Updates -->
<section id="updates" class="update-elements">
<div class="wrapper content-and-side-content compact">
<div>
<div class="header">
<div>
<h1><span class="material-icons">newspaper</span>Updates</h1>
</div>
<div>
{%- include _includes/paginator.html -%}
</div>
</div>

<div class="update-panels">
{%- for update in site.updates -%}
<a href="{{update.url | absolute_url}}">
<div>
<span class="material-icons">event</span> {{update.date | date: "%m/%d/%Y" }}
</div>
<div>
<h1>{{update.title}}</h1>
<h2>{{update.content | strip_html | truncatewords:50}}</h2>
</div>
<div>
{%- for tag in update.tags -%}
<div class="update tag {{tag | slugify}}">{{tag | capitalize}}</div>
{%- endfor -%}
</div>
</a>
{%- endfor -%}

{% if site.updates.size < 2 %}
{% assign short_fall = 2 | minus: site.updates.size %}

{% for num in (1..short_fall) %}
<div class="placeholder">
<div>
Coming Soon!
</div>
</div>
{% endfor %}
{% endif %}
</div>

{%- include _includes/paginator.html -%}
</div>
<div>
<h1>
<span class="material-icons">public</span>Socials
</h1>
<div id="twitter">
<p>Coming Soon!</p>
</div>
</div>
</div>
</section>

0 comments on commit a8d0c32

Please sign in to comment.