Add projects section with initial 4runner page

This commit is contained in:
Mike Wilson
2025-09-18 16:18:07 -04:00
parent 807ce3bdf8
commit 958a859180
8 changed files with 41 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
public/
static/

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

View File

@@ -0,0 +1,12 @@
+++
title = "2001 Toyota 4Runner"
date = 2025-09-18
updated = 2025-09-18
+++
My 2001 Toyota 4Runner and the modifications I've done to it.
{% resize_image(img_name="4runner.jpg", width=1200, height=800, op="fit") %}
Gray 2001 Toyota 4runner with two kayaks on the roof, parked on a gravel road with a mountainous view
{% end %}

View File

@@ -0,0 +1,6 @@
+++
title = "Ongoing Projects"
sort_by = "date"
template = "projects.html"
page_template = "post.html"
+++

View File

@@ -12,8 +12,9 @@
<a href="{{ get_url(path='/') }}">Home</a>
<a href="{{ get_url(path='@/about.md') }}">About</a>
<a href="{{ get_url(path='@/blog/_index.md') }}">Posts</a>
<a href="{{ get_url(path='@/projects/_index.md') }}">Projects</a>
<a href="{{ get_url(path='@/books.md') }}">Books</a>
<a href="https://git.mjwilson.org">Projects</a>
<a href="https://git.mjwilson.org">Git</a>
</nav>
</header>
<section class="section">

View File

@@ -4,6 +4,7 @@
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>{{ page.date }}</strong></p>
<p class="subtitle"><strong>Created: {{ page.date }}</strong></p>
<p class="subtitle"><strong>Modified: {{ page.updated }}</strong></p>
{{ page.content | safe }}
{% endblock content %}

15
templates/projects.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
<p>This is a list of ongoing projects I'm working on. Each project may link to individual blog posts detailing particular parts of them.</p>
<ul>
<!-- If you are using pagination, section.pages will be empty.
You need to use the paginator object -->
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

View File

@@ -0,0 +1,2 @@
{% set image = resize_image(path=page.colocated_path ~ img_name, width=width, height=height, op=op) %}
<img src="{{ image.url }}" alt="{{ body }}" />