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

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 }}" />