Skip to content

Commit

Permalink
Add more pages
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Aug 2, 2021
1 parent 5739586 commit f70db1e
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 7 deletions.
4 changes: 3 additions & 1 deletion site/_includes/default.njk
Expand Up @@ -22,7 +22,9 @@

{# Other links #}
<div class="other-links">
<a href="/about/">About</a>
<a href="/projects/">Code</a>
<a href="/photos/">Photos</a>
<a href="/about/">About Me</a>
<a href="https://github.com/LucasPickering">GitHub</a>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion site/index.njk
Expand Up @@ -16,7 +16,7 @@ title: Home
</p>

<h2>Recent Posts</h2>
{%- for post in collections.post | reverse-%}
{%- for post in collections.post | reverse -%}
<div>
<div class="post-title-group">
<h3>
Expand Down
20 changes: 20 additions & 0 deletions site/pages/photos.njk
@@ -0,0 +1,20 @@
---
layout: default
title: Projects
---

<div>
<h1>My Photography</h1>
{%- for post in collections.photo | reverse -%}
<div>
<div class="post-title-group">
<h3>
<a href="{{ post.url }}">{{ post.data.title }}</a>
</h3>
<span class="post-date">{% date post.date %}</span>
</div>
<img class="banner-small" src="{{ post.data.banner }}"/>
<p>{{ post.data.summary }}</p>
</div>
{%- endfor -%}
</div>
20 changes: 20 additions & 0 deletions site/pages/projects.njk
@@ -0,0 +1,20 @@
---
layout: default
title: Projects
---

<div>
<h1>Projects</h1>
{%- for post in collections.project | reverse -%}
<div>
<div class="post-title-group">
<h3>
<a href="{{ post.url }}">{{ post.data.title }}</a>
</h3>
<span class="post-date">{% date post.date %}</span>
</div>
<img class="banner-small" src="{{ post.data.banner }}"/>
<p>{{ post.data.summary }}</p>
</div>
{%- endfor -%}
</div>
4 changes: 2 additions & 2 deletions site/posts/mt-washington.md
@@ -1,10 +1,10 @@
---
title: "Cogs and Cairns: A Hike Up Mount Washington"
date: 2021-07-28
summary: A 10-mile journey on New England's least friendly mountain.
summary: A 10-mile journey on New England's unfriendliest mountain.
banner: /assets/mt-washington/DSC_0216.jpg
tags:
# - post
- post
- photo
---

Expand Down
3 changes: 0 additions & 3 deletions site/styles/main.css
Expand Up @@ -7,9 +7,6 @@
/* Posts */

.post-header {
display: flex;
justify-content: space-between;
align-items: end;
margin: 24px 0;
}

Expand Down

0 comments on commit f70db1e

Please sign in to comment.