Skip to content

Commit 016d103

Browse files
committed
Create blog page
Also updates homepage and deletes some empty project pages
1 parent 798e245 commit 016d103

File tree

8 files changed

+30
-19
lines changed

8 files changed

+30
-19
lines changed

content/_index.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
+++
22
+++
33

4-
Hi! My name is Eli. I like to play with robots and programming languages, and
5-
I'm a Software Engineer at Datadog.
6-
7-
I publish all my notes from my time at NC State here as well as occasional blog
8-
posts.
9-
10-
If you want to contact/follow me for whatever reason, here's my contact
11-
gubbins:
4+
Occasional writer, software engineer, transit nerd.
125

136
* GitHub: <https://github.com/elihunter173/>
147
* LinkedIn: <https://linkedin.com/in/elihunter173/>
158
* Email: [elihunter173@gmail.com](mailto:elihunter173@gmail.com)
9+
* Résumé: [https://elihunter173.com/elihunter173_resume.pdf](/elihunter173_resume.pdf)

content/blog/_index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
+++
2+
title = "Blog"
3+
template = "blog/list.html"
4+
page_template = "blog/page.html"
5+
sort_by = "date"
6+
+++

content/projects/toothpaste_reviews_2020.md renamed to content/blog/toothpaste_reviews_2020.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title = "Toothpaste Reviews 2020"
33
description = "A silly review of a bunch of travel toothpastes I had lying around."
44
date = 2020-09-07
5-
weight = 100
65
+++
76

87
For fun during quarantine I decided to go through my collection of travel-size

content/projects/asteroids_3d.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ description = "A 3D version of the classic Asteroids game made initially for my
44
weight = 1
55
+++
66

7-
TODO: Talk more about how I did this and what I learned.
8-
97
[Play here](/asteroids/).

content/projects/mana.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<nav>
3939
<h2><a href="/">e l i</a></h2>
4040
<ul>
41+
<li><a href="/blog/">blog</a></li>
4142
<li><a href="/projects/">projects</a></li>
4243
<li><a href="/notes/">notes</a></li>
43-
<li><a href="/elihunter173_resume.pdf">résumé</a></li>
4444
</ul>
4545
</nav>
4646

templates/blog/list.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
<h1 class="title">{{ section.title }}</h1>
5+
{{ section.content | safe }}
6+
7+
{% for page in section.pages %}
8+
<h2><a href="{{ page.path | safe }}">{{ page.title }}</a></h2>
9+
{{ page.description }}
10+
{% endfor %}
11+
12+
{% endblock content %}

templates/blog/page.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
<header>
5+
<h1 class="title">{{ page.title }}</h1>
6+
</header>
7+
8+
{{ page.content | safe }}
9+
{% endblock content %}

0 commit comments

Comments
 (0)