1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

Create photos page

This commit is contained in:
Daniel Barber 2019-07-08 20:44:45 -04:00
parent 33d0996b12
commit 8f8eaac3c3
6 changed files with 36 additions and 2 deletions

View File

@ -39,7 +39,7 @@ pagination:
collection: "posts"
enabled: true
per_page: 10
permalink: "blog/page/:num/"
permalink: "page/:num/"
sort_reverse: true
permalink: ":year/:month/:day/:title"

View File

@ -7,6 +7,7 @@
<nav role="navigation" class="site-header__navigation">
<ul>
<li><a href="{{ root_url }}/">Blog</a></li>
<li><a href="{{ root_url }}/photos">Photos</a></li>
<li><a href="{{ root_url }}/about">About</a></li>
</ul>
</nav>

View File

@ -3,7 +3,6 @@ title: Brompton
layout: post
categories:
- blog
- photos
tags:
- bikes
- fun

View File

@ -3,6 +3,7 @@
/canvas https://danbee.github.io/canvas 301
/atom.xml /feed.xml 301
/micropub/* https://micropubme.herokuapp.com/micropub/:splat 200
/blog/page/* /page/:splat 301
/bwc /2019/06/23/bwc 301
/brompton /2019/03/10/brompton 301

View File

@ -2,6 +2,7 @@
layout: default
pagination:
enabled: true
category: blog
---
{% assign index = true %}

32
photos/index.html Normal file
View File

@ -0,0 +1,32 @@
---
layout: default
pagination:
enabled: true
category: photos
---
{% assign index = true %}
{% include header.html %}
<div id="content">
{% for post in paginator.posts %}
{% assign content = post.content %}
<article class="article">
{% include index_article.html %}
</article>
{% endfor %}
<div class="container pagination">
{% if paginator.next_page %}
<a class="prev" href="{{ paginator.next_page_path }}">&larr; Older</a>
{% endif %}
{% if paginator.previous_page %}
<a class="next" href="{{ paginator.previous_page_path }}">Newer &rarr;</a>
{% endif %}
</div>
</div>
{% include footer.html %}