Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
1fc01d6630 Live demo during PHP Thames Valley talk 2025-03-20 22:45:00 +00:00
6 changed files with 39 additions and 6 deletions

View file

@ -1,7 +1,7 @@
sculpin_content_types: sculpin_content_types:
# speakers: speakers:
# permalink: /speakers/:basename/ permalink: /speakers/:basename/
# talks: talks:
# permalink: /talks/:basename/ permalink: /talks/:basename/
posts: posts:
enabled: false enabled: false

View file

@ -1,2 +1,2 @@
name: 'My New Sculpin Site' name: 'PHP Thames Valley'
locale: en locale: en

View file

@ -2,4 +2,18 @@
{% block content_wrapper %} {% block content_wrapper %}
<h1>{{ page.name }}</h1> <h1>{{ page.name }}</h1>
<img style="height: 50px; width: 50px;" src="{{ page.imageUrl }}"/>
{% block content %}{% endblock %}
<hr>
{% for talk in data.talks if talk.speakers.0 == page.name %}
<li>
<a href="{{ talk.url }}">
{{ talk.title }}
</a>
</li>
{% endfor %}
{% endblock %} {% endblock %}

View file

@ -2,4 +2,10 @@
{% block content_wrapper %} {% block content_wrapper %}
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{{ page.date|date('jS F Y') }}
{% for speaker in page.speakers %}
{{ speaker }}
{% endfor %}
{% endblock %} {% endblock %}

View file

@ -1,4 +1,6 @@
--- ---
name: Dan Leech name: Dan Leech
imageUrl: /images/highres_257208698.jpeg imageUrl: /images/highres_257208698.jpeg
layout: speaker
use: [talks]
--- ---

View file

@ -1,4 +1,15 @@
--- ---
layout: base layout: base
title: Hello, World! title: Hello, PHP Thames Valley!
use: [talks]
--- ---
<ul>
{% for talk in data.talks %}
<li>
<a href="{{ talk.url }}">
{{ talk.title }}
</a>
</li>
{% endfor %}
</ul>