Move slides
This commit is contained in:
parent
6891a7517a
commit
2604bce65d
18 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
name: oliverdavies.uk
|
||||
menu_links:
|
||||
- { title: Home, href: / }
|
||||
- { title: About, href: /about }
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
title: My Daily Email Archive
|
||||
layout: default
|
||||
use:
|
||||
- daily_email
|
||||
---
|
||||
|
||||
{% for email in data.daily_emails %}
|
||||
<p>{{ email.title }}</p>
|
||||
{% endfor %}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
...
|
||||
testimonials:
|
||||
- { name: ..., role: ..., text: ..., url: ... }
|
||||
- { name: ..., role: ..., text: ..., url: ... }
|
||||
- { name: ..., role: ..., text: ..., url: ... }
|
||||
---
|
||||
|
||||
{% for testimonial in page.testimonials %}
|
||||
<h2>{{ testimonial.name }} - {{ testimonial.role }}</h2>
|
||||
<p>{{ testimonial.text }}</p>
|
||||
{% endfor %}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
layout: post
|
||||
title: New blog post
|
||||
draft: yes
|
||||
---
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello!</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Hello, World!</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: default
|
||||
title: Hello!
|
||||
---
|
||||
|
||||
Hello, World!
|
||||
11
building-static-websites-sculpin/slides/code/layout-base.txt
Normal file
11
building-static-websites-sculpin/slides/code/layout-base.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{# source/_layouts/base.html.twig #}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.locale|default('en') }}">
|
||||
<head>
|
||||
<title>{{ site.name|default('Sculpin Skeleton') }}</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
{# source/_layouts/page.html.twig #}
|
||||
|
||||
{% extends 'base' %}
|
||||
|
||||
{% block body %}
|
||||
{% block content %}{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
app/
|
||||
config/
|
||||
sculpin_kernel.yml
|
||||
sculpin_site.yml
|
||||
composer.json
|
||||
composer.lock
|
||||
output_dev/
|
||||
output_prod/
|
||||
source/
|
||||
_includes/
|
||||
_templates/
|
||||
index.md
|
||||
vendor/
|
||||
8
building-static-websites-sculpin/slides/code/twig-1.txt
Normal file
8
building-static-websites-sculpin/slides/code/twig-1.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ 'today' }}
|
||||
|
||||
{{ 'today'|date }}
|
||||
|
||||
{{ 'today'|date('Y') }}
|
||||
|
||||
{{ 'today'|date('Y') - 2007 }} # 18 (years of experience)
|
||||
|
||||
24
building-static-websites-sculpin/slides/code/twig-2.txt
Normal file
24
building-static-websites-sculpin/slides/code/twig-2.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
title: Building Static Websites with Sculpin
|
||||
events:
|
||||
- name: PHP Berkshire
|
||||
date: 2024-08-28
|
||||
location: Reading, UK
|
||||
url: https://www.meetup.com/php-berkshire/events/301850284
|
||||
- name: BrumPHP
|
||||
date: 2024-05-23
|
||||
location: Birmingham, UK
|
||||
url: https://www.eventbrite.com/e/brumphp-23rd-may-2024-tickets-803037766577
|
||||
---
|
||||
// end yaml
|
||||
|
||||
// start twig
|
||||
{% set talkCount = 0 %}
|
||||
|
||||
{% for talk in data.talks %}
|
||||
{% for event in talk.events if 'today'|date('U') >= event.date|date('U') %}
|
||||
{% set talkCount = talkCount + 1 %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
<p>I have given {{ talkCount }} talks.</p>
|
||||
15
building-static-websites-sculpin/slides/code/twig-3.txt
Normal file
15
building-static-websites-sculpin/slides/code/twig-3.txt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{% set talks = site.talks|filter(talk => talk.speaker == page.name) %}
|
||||
|
||||
{% if talks is not empty %}
|
||||
<section>
|
||||
<h2>Talks by {{ page.name }}</h2>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
{% for talk in talks %}
|
||||
<li><a href="#0">{{ talk.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue