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

Compare commits

..

2 Commits

Author SHA1 Message Date
e93f74c9b8
Add separate blog index page and show all posts on the front page 2019-08-14 07:50:57 -04:00
5236e9f39a
Add post 2019-08-14 07:33:06 -04:00
5 changed files with 59 additions and 2 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,26 @@
---
title: Sitges Church
date: Wed, 14 Aug 2019 00:00:00 +0000
categories:
- travel
- photos
tags:
- spain
- barcelona
- sitges
- church
- sea
- sailing
layout: post
image: "blog/sitges-church/DSCF8575.jpg"
---
<figure class="photo photo--wide">
{% picture photo-wide blog/sitges-church/DSCF8575.jpg alt="Sitges Church from the sea" %}
<figcaption>Fuji X-Pro2, XF 55-200mm at 135mm, ISO 200, 1/420 sec at ƒ/9</figcaption>
</figure>
Church of Sant Bartomeu & Santa Tecla, Sitges. This is a shot of the church and
part of the town surrounding it. The group we were with rented a bunch of sail
boats for the day. Unfortunately everyone but us ended up being too sick to
carry on which meant we got our own private sail!

32
blog/index.html Normal file
View File

@ -0,0 +1,32 @@
---
layout: default
pagination:
enabled: true
category: blog
---
{% 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 %}

View File

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