Add projects section with initial 4runner page
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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
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