Skip to content

Commit

Permalink
Create blog page
Browse files Browse the repository at this point in the history
Also updates homepage and deletes some empty project pages
  • Loading branch information
elihunter173 committed Oct 17, 2024
1 parent 798e245 commit 016d103
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 19 deletions.
10 changes: 2 additions & 8 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
+++
+++

Hi! My name is Eli. I like to play with robots and programming languages, and
I'm a Software Engineer at Datadog.

I publish all my notes from my time at NC State here as well as occasional blog
posts.

If you want to contact/follow me for whatever reason, here's my contact
gubbins:
Occasional writer, software engineer, transit nerd.

* GitHub: <https://github.com/elihunter173/>
* LinkedIn: <https://linkedin.com/in/elihunter173/>
* Email: [[email protected]](mailto:[email protected])
* Résumé: [https://elihunter173.com/elihunter173_resume.pdf](/elihunter173_resume.pdf)
6 changes: 6 additions & 0 deletions content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
title = "Blog"
template = "blog/list.html"
page_template = "blog/page.html"
sort_by = "date"
+++
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title = "Toothpaste Reviews 2020"
description = "A silly review of a bunch of travel toothpastes I had lying around."
date = 2020-09-07
weight = 100
+++

For fun during quarantine I decided to go through my collection of travel-size
Expand Down
2 changes: 0 additions & 2 deletions content/projects/asteroids_3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ description = "A 3D version of the classic Asteroids game made initially for my
weight = 1
+++

TODO: Talk more about how I did this and what I learned.

[Play here](/asteroids/).
7 changes: 0 additions & 7 deletions content/projects/mana.md

This file was deleted.

2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<nav>
<h2><a href="/">e l i</a></h2>
<ul>
<li><a href="/blog/">blog</a></li>
<li><a href="/projects/">projects</a></li>
<li><a href="/notes/">notes</a></li>
<li><a href="/elihunter173_resume.pdf">résumé</a></li>
</ul>
</nav>

Expand Down
12 changes: 12 additions & 0 deletions templates/blog/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}

{% block content %}
<h1 class="title">{{ section.title }}</h1>
{{ section.content | safe }}

{% for page in section.pages %}
<h2><a href="{{ page.path | safe }}">{{ page.title }}</a></h2>
{{ page.description }}
{% endfor %}

{% endblock content %}
9 changes: 9 additions & 0 deletions templates/blog/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% extends "base.html" %}

{% block content %}
<header>
<h1 class="title">{{ page.title }}</h1>
</header>

{{ page.content | safe }}
{% endblock content %}

0 comments on commit 016d103

Please sign in to comment.