Move the intro text into the page template

This commit is contained in:
Oliver Davies 2021-06-30 08:00:00 +01:00
parent 8fb1947891
commit bfdb82a4ba
3 changed files with 12 additions and 4 deletions

View file

@ -1 +1,9 @@
{% extends 'base' %}
{% block content_wrapper %}
{% if page.intro_text %}
<p class="max-w-lg">{{ page.intro_text }}</p>
{% endif %}
{{ parent() }}
{% endblock %}

View file

@ -2,10 +2,10 @@
title: Blog
use:
- posts
intro_text: |
TODO: update text
---
<p>TODO: update text</p>
<div class="mt-6">
<div class="space-y-6">
{% for talk in data.posts|sort((a, b) => a.date < b.date) %}

View file

@ -2,10 +2,10 @@
title: Talks and workshops
use:
- talks
intro_text: |
Starting with my first talk in September 2012, I have given 81 presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.
---
<p>Starting with my first talk in September 2012, I have given 81 presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.</p>
<div class="mt-6">
<div class="space-y-6">
{% for talk in data.talks|sort((a,b) => a.sortable_date < b.sortable_date) %}