Move the intro text into the page template
This commit is contained in:
parent
8fb1947891
commit
bfdb82a4ba
|
@ -1 +1,9 @@
|
||||||
{% extends 'base' %}
|
{% extends 'base' %}
|
||||||
|
|
||||||
|
{% block content_wrapper %}
|
||||||
|
{% if page.intro_text %}
|
||||||
|
<p class="max-w-lg">{{ page.intro_text }}</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{{ parent() }}
|
||||||
|
{% endblock %}
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
title: Blog
|
title: Blog
|
||||||
use:
|
use:
|
||||||
- posts
|
- posts
|
||||||
|
intro_text: |
|
||||||
|
TODO: update text
|
||||||
---
|
---
|
||||||
|
|
||||||
<p>TODO: update text</p>
|
|
||||||
|
|
||||||
<div class="mt-6">
|
<div class="mt-6">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
{% for talk in data.posts|sort((a, b) => a.date < b.date) %}
|
{% for talk in data.posts|sort((a, b) => a.date < b.date) %}
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
title: Talks and workshops
|
title: Talks and workshops
|
||||||
use:
|
use:
|
||||||
- talks
|
- 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="mt-6">
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
{% for talk in data.talks|sort((a,b) => a.sortable_date < b.sortable_date) %}
|
{% for talk in data.talks|sort((a,b) => a.sortable_date < b.sortable_date) %}
|
||||||
|
|
Loading…
Reference in a new issue