Add projects section with initial 4runner page
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
public/
|
||||||
|
static/
|
||||||
BIN
content/projects/4runner/4runner.jpg
Normal file
BIN
content/projects/4runner/4runner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 MiB |
12
content/projects/4runner/index.md
Normal file
12
content/projects/4runner/index.md
Normal 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 %}
|
||||||
|
|
||||||
6
content/projects/_index.md
Normal file
6
content/projects/_index.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
+++
|
||||||
|
title = "Ongoing Projects"
|
||||||
|
sort_by = "date"
|
||||||
|
template = "projects.html"
|
||||||
|
page_template = "post.html"
|
||||||
|
+++
|
||||||
@@ -12,8 +12,9 @@
|
|||||||
<a href="{{ get_url(path='/') }}">Home</a>
|
<a href="{{ get_url(path='/') }}">Home</a>
|
||||||
<a href="{{ get_url(path='@/about.md') }}">About</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='@/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="{{ get_url(path='@/books.md') }}">Books</a>
|
||||||
<a href="https://git.mjwilson.org">Projects</a>
|
<a href="https://git.mjwilson.org">Git</a>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<section class="section">
|
<section class="section">
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
</h1>
|
</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 }}
|
{{ page.content | safe }}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
15
templates/projects.html
Normal file
15
templates/projects.html
Normal 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 %}
|
||||||
2
templates/shortcodes/resize_image.html
Normal file
2
templates/shortcodes/resize_image.html
Normal 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 }}" />
|
||||||
Reference in New Issue
Block a user