Skip to content

Commit c2f1268

Browse files
committed
Move blog pagination under /blog dir
1 parent 4fb450b commit c2f1268

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cloudinary: "https://res.cloudinary.com/csswizardry/image/fetch/f_auto,q_auto/ht
1111
markdown: kramdown
1212
permalink: /:year/:month/:title/
1313
paginate: 10
14+
paginate_path: "/blog/page-:num/"
1415
incremental: true
1516

1617
# Gems

_includes/pagination.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<li class="layout__item lap-and-up-one-half mb">
44
{% if paginator.next_page %}
5-
<a href="/page{{paginator.next_page}}/#section:articles" class="btn btn--full btn--secondary" id=archiveOlder>Older articles</a>
5+
<a href="/blog/page-{{paginator.next_page}}/#section:articles" class="btn btn--full btn--secondary" id=archiveOlder>Older articles</a>
66
{% endif %}
77

88
{% if paginator.previous_page %}
99
<li class="layout__item lap-and-up-one-half mb">
1010
{% if paginator.previous_page == 1 %}
1111
<a href="/#section:articles" class="btn btn--full" id=archiveNewer>Newer articles</a>
1212
{% else %}
13-
<a href="/page{{paginator.previous_page}}/#section:articles" class="btn btn--full" id=archiveNewer>Newer articles</a>
13+
<a href="/blog/page-{{paginator.previous_page}}/#section:articles" class="btn btn--full" id=archiveNewer>Newer articles</a>
1414
{% endif %}
1515
{% endif %}
1616

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<script>
7777
if ('serviceWorker' in navigator) {
7878
window.addEventListener('load', function() {
79-
navigator.serviceWorker.register('/sw.js?0164').then(function(registration) {
79+
navigator.serviceWorker.register('/sw.js?0165').then(function(registration) {
8080
// Successfully registered the Service Worker
8181
//console.log('Service Worker registration successful with scope: ', registration.scope);
8282
}).catch(function(err) {

sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var cacheName = 'csswizardry:0164';
1+
var cacheName = 'csswizardry:0165';
22
var cacheFiles = [
33
'/',
44
'/about/',
@@ -63,7 +63,7 @@ self.addEventListener('fetch', function(event) {
6363
// Empty out any caches that don’t match the ones listed.
6464
self.addEventListener('activate', function(event) {
6565

66-
var cacheWhitelist = ['csswizardry:0164'];
66+
var cacheWhitelist = ['csswizardry:0165'];
6767

6868
event.waitUntil(
6969
caches.keys().then(function(cacheNames) {

0 commit comments

Comments
 (0)