Compare commits
3 Commits
61532d4bb7
...
f9d1f38843
Author | SHA1 | Date |
---|---|---|
Joshua Potter | f9d1f38843 | |
Joshua Potter | 113e0c129a | |
Joshua Potter | 24090c216c |
|
@ -32,7 +32,7 @@ plugins:
|
||||||
|
|
||||||
pagination:
|
pagination:
|
||||||
enabled: true
|
enabled: true
|
||||||
per_page: 10
|
per_page: 5
|
||||||
permalink: '/page/:num/'
|
permalink: '/page/:num/'
|
||||||
limit: 0
|
limit: 0
|
||||||
sort_field: 'date'
|
sort_field: 'date'
|
||||||
|
|
|
@ -1,14 +1,32 @@
|
||||||
{% if paginator.total_pages > 1 %}
|
{% if paginator.total_pages > 1 %}
|
||||||
<ul>
|
<nav aria-label="Page Navigation">
|
||||||
{% if paginator.previous_page %}
|
<ul class="pagination">
|
||||||
<li>
|
<!-- left arrow -->
|
||||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
|
{% if paginator.previous_page %}
|
||||||
</li>
|
{% assign prev_url = paginator.previous_page_path | prepend: site.baseurl %}
|
||||||
{% endif %}
|
{% else %}
|
||||||
{% if paginator.next_page %}
|
{% assign prev_url = '' %}
|
||||||
<li>
|
{% endif %}
|
||||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
|
|
||||||
</li>
|
<li class="page-item {% unless paginator.previous_page %}disabled{% endunless %}">
|
||||||
{% endif %}
|
<a class="page-link" href="{{ prev_url }}" aria-label="previous-page">
|
||||||
</ul>
|
<i class="fa fa-angle-left"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- right arrow -->
|
||||||
|
{% if paginator.next_page_path %}
|
||||||
|
{% assign next_url = paginator.next_page_path | prepend: site.baseurl %}
|
||||||
|
{% else %}
|
||||||
|
{% assign next_url = '#' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<li class="page-item {% unless paginator.next_page_path %}disabled{% endunless %}">
|
||||||
|
<a class="page-link" href="{{ next_url }}" aria-label="next-page">
|
||||||
|
<i class="fa fa-angle-right"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<!-- .pagination -->
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% if paginator.page_path contains "index" %}
|
||||||
<p class="home-description">
|
<p class="home-description">
|
||||||
Most applications listed below are served from <a href="https://nixos.org/" target="_blank">NixOS</a>
|
Most applications listed below are served from <a href="https://nixos.org/" target="_blank">NixOS</a>
|
||||||
machines hosted on <a href="https://www.digitalocean.com/" target="_blank">Digital Ocean</a>.
|
machines hosted on <a href="https://www.digitalocean.com/" target="_blank">Digital Ocean</a>.
|
||||||
|
@ -9,6 +10,7 @@ layout: default
|
||||||
If interested in starting a similar hosting solution, consider getting a $200
|
If interested in starting a similar hosting solution, consider getting a $200
|
||||||
credit using my <a href="https://m.do.co/c/c65b89434c1b" target="_blank">referral link</a>.
|
credit using my <a href="https://m.do.co/c/c65b89434c1b" target="_blank">referral link</a>.
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% for post in paginator.posts %}
|
{% for post in paginator.posts %}
|
||||||
<div class="posts-container">
|
<div class="posts-container">
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
---
|
|
||||||
layout: default
|
|
||||||
---
|
|
||||||
|
|
||||||
{% for post in paginator.posts %}
|
|
||||||
<div class="posts-container">
|
|
||||||
<h1>
|
|
||||||
{% if post.href %}
|
|
||||||
<a href="{{ post.href }}" target="_blank">{{ post.title }}</a>
|
|
||||||
{% else %}
|
|
||||||
{{ post.title }}
|
|
||||||
{% endif %}
|
|
||||||
</h1>
|
|
||||||
{% if post.image %}
|
|
||||||
<div class="thumbnail-container">
|
|
||||||
<a href="{{ post.href }}" target="_blank">
|
|
||||||
<img src="{{ site.github.url }}/assets/img/{{ post.image }}">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
<div class="post-tags">
|
|
||||||
{% for tag in post.tags %}
|
|
||||||
<div class="{{ tag }}">{{ tag }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<p>{{ post.content }}</p>
|
|
||||||
<span class="post-date">
|
|
||||||
{% if post.href %}
|
|
||||||
<a href="{{ post.href }}" target="_blank">{{ post.href }}</a> -
|
|
||||||
{% endif %}
|
|
||||||
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
||||||
{{ post.date | date_to_string }}
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% include post-paginator.html %}
|
|
|
@ -1,39 +0,0 @@
|
||||||
---
|
|
||||||
layout: default
|
|
||||||
---
|
|
||||||
|
|
||||||
{% for post in paginator.posts %}
|
|
||||||
<div class="posts-container">
|
|
||||||
<h1>
|
|
||||||
{% if post.href %}
|
|
||||||
<a href="{{ post.href }}" target="_blank">{{ post.title }}</a>
|
|
||||||
{% else %}
|
|
||||||
{{ post.title }}
|
|
||||||
{% endif %}
|
|
||||||
</h1>
|
|
||||||
{% if post.image %}
|
|
||||||
<div class="thumbnail-container">
|
|
||||||
<a href="{{ post.href }}" target="_blank">
|
|
||||||
<img src="{{ site.github.url }}/assets/img/{{ post.image }}">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<p>
|
|
||||||
<div class="post-tags">
|
|
||||||
{% for tag in post.tags %}
|
|
||||||
<div class="{{ tag }}">{{ tag }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<p>{{ post.content }}</p>
|
|
||||||
<span class="post-date">
|
|
||||||
{% if post.href %}
|
|
||||||
<a href="{{ post.href }}" target="_blank">{{ post.href }}</a> -
|
|
||||||
{% endif %}
|
|
||||||
<i class="fa fa-calendar" aria-hidden="true"></i>
|
|
||||||
{{ post.date | date_to_string }}
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% include post-paginator.html %}
|
|
|
@ -10,3 +10,24 @@
|
||||||
max-height: 220px;
|
max-height: 220px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.pagination {
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
padding: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
li.disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
|
||||||
|
.page-link i {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-link i {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: other
|
layout: home
|
||||||
title: Other
|
title: Other
|
||||||
pagination:
|
pagination:
|
||||||
enabled: true
|
enabled: true
|
||||||
category: other
|
category: other
|
||||||
indexpage: other
|
indexpage: other
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: projects
|
layout: home
|
||||||
title: Projects
|
title: Projects
|
||||||
pagination:
|
pagination:
|
||||||
enabled: true
|
enabled: true
|
||||||
category: project
|
category: project
|
||||||
indexpage: projects
|
indexpage: projects
|
||||||
|
|
Loading…
Reference in New Issue