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:
parent
33d0996b12
commit
8f8eaac3c3
@ -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"
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -3,7 +3,6 @@ title: Brompton
|
||||
layout: post
|
||||
categories:
|
||||
- blog
|
||||
- photos
|
||||
tags:
|
||||
- bikes
|
||||
- fun
|
||||
|
||||
@ -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
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
layout: default
|
||||
pagination:
|
||||
enabled: true
|
||||
category: blog
|
||||
---
|
||||
|
||||
{% assign index = true %}
|
||||
|
||||
32
photos/index.html
Normal file
32
photos/index.html
Normal 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 }}">← Older</a>
|
||||
{% endif %}
|
||||
|
||||
{% if paginator.previous_page %}
|
||||
<a class="next" href="{{ paginator.previous_page_path }}">Newer →</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
Loading…
Reference in New Issue
Block a user