1

Add photography section

This commit is contained in:
Evan Pratten 2024-01-05 12:26:26 -05:00
parent 32a60b06fc
commit 8d5d0a1ff8
35 changed files with 135 additions and 28 deletions

View File

@ -1,9 +1,7 @@
---
title: Blog
sort_by: date
extra:
section_embed_mode: blog_posts
# redir_to: /timeline
template: "blog-timeline.html"
---
The following is a list of articles I've written. This is also available in [RSS](/rss.xml) format.

View File

@ -0,0 +1,8 @@
---
title: Old Quebec
date: 2017-06-21
extra:
cover_image: /photos/2017-06-21-old-quebec.jpeg
---
![Old Quebec](/photos/2017-06-21-old-quebec.jpeg)

View File

@ -0,0 +1,8 @@
---
title: Stormy Street in Quebec
date: 2017-06-21
extra:
cover_image: /photos/2017-06-21-stormy-quebec-street.jpeg
---
![Stormy Street in Quebec](/photos/2017-06-21-stormy-quebec-street.jpeg)

View File

@ -0,0 +1,8 @@
---
title: Montmorency Falls
date: 2017-06-22
extra:
cover_image: /photos/2017-06-22-montmorency-falls.jpeg
---
![Montmorency Falls](/photos/2017-06-22-montmorency-falls.jpeg)

View File

@ -0,0 +1,8 @@
---
title: Rocky Shore
date: 2017-08-04
extra:
cover_image: /photos/2017-08-04-rocky-shore-halifax.jpeg
---
![Rocky Shore](/photos/2017-08-04-rocky-shore-halifax.jpeg)

View File

@ -0,0 +1,10 @@
---
title: Halifax Port
date: 2019-08-04
extra:
cover_image: /photos/2019-08-04-halifax-port.jpeg
---
![Halifax Port](/photos/2019-08-04-halifax-port.jpeg)
*Shot at [PSA International](https://www.globalpsa.com/)'s Halifax port.*

View File

@ -0,0 +1,10 @@
---
title: Jacob's Ladder
date: 2019-08-09
extra:
cover_image: /photos/2019-08-09-jacobs-ladder.jpeg
---
![Jacob's Ladder](/photos/2019-08-09-jacobs-ladder.jpeg)
*Shot at Jacob's Ladder, a stairway in Victoria Park, Truro, Nova Scotia.*

View File

@ -0,0 +1,8 @@
---
title: My Desk
date: 2020-07-19
extra:
cover_image: /photos/2020-07-19-my-desk.png
---
![My Desk](/photos/2020-07-19-my-desk.png)

View File

@ -0,0 +1,8 @@
---
title: Two Cars
date: 2020-07-23
extra:
cover_image: /photos/2020-07-23-two-cars.png
---
![Two Cars](/photos/2020-07-23-two-cars.png)

View File

@ -0,0 +1,8 @@
---
title: Snow Day in Space
date: 2022-01-18
extra:
cover_image: /photos/2022-01-18-snow-day-in-space.jpg
---
![Snow Day in Space](/photos/2022-01-18-snow-day-in-space.jpg)

6
content/photos/_index.md Normal file
View File

@ -0,0 +1,6 @@
---
title: Photography
sort_by: date
template: "photo-timeline.html"
---

View File

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

View File

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 985 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 MiB

View File

@ -108,6 +108,7 @@
<li><a href="/blog">Blog</a></li>
<li><a href="/radio">Radio</a></li>
<li><a href="/music">Music</a></li>
<li><a href="/photos">Photos</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
<hr>

View File

@ -0,0 +1,28 @@
{% extends "base.html" %}
{% block content %}
{{super()}}
{# Posts shall be broken down by year #}
{% set title_year = "3000" %}
{% for page in section.pages %}
{% if not page.extra.hidden %}
{% set page_year = page.date | date(format="%Y")%}
{% if page_year != title_year %}
{% set_global title_year = page_year %}
</ul>
<h2>{{title_year}}</h2>
<ul class="blog-post-list">
{% endif %}
<li>
<span class="date" {% if page.draft %}data-draft="true" {% endif %}>{{page.date}}:</span>
<a href="{{page.path | safe}}">{{page.title}}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endblock content %}

View File

@ -0,0 +1,23 @@
{% extends "base.html" %}
{% block content %}
{{super()}}
{% for page in section.pages %}
{% if not page.extra.hidden %}
<a href="{{page.path | safe}}" style="color:black !important;">
<img src="{{page.extra.cover_image | safe}}" alt="{{page.title}}" style="width:100%;" loading="lazy">
<div style="display:flex;justify-content:space-between;">
<span><strong>{{page.title}}</strong></span>
<span class="gray">{{page.date}}</span>
</div>
</a>
<br>
{% endif %}
{% endfor %}
{% endblock content %}

View File

@ -5,29 +5,4 @@
{{super()}}
{# Blog posts page gets special treatment #}
{% if section.path == "/blog/" %}
{# Posts shall be broken down by year #}
{% set title_year = "3000" %}
{% for page in section.pages %}
{% if not page.extra.hidden %}
{% set page_year = page.date | date(format="%Y")%}
{% if page_year != title_year %}
{% set_global title_year = page_year %}
</ul>
<h2>{{title_year}}</h2>
<ul class="blog-post-list">
{% endif %}
<li>
<span class="date" {% if page.draft %}data-draft="true" {% endif %}>{{page.date}}:</span>
<a href="{{page.path | safe}}">{{page.title}}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endblock content %}