"value":"\n <p>Static site generators <a href=\"https:\/\/www.oliverdavies.uk\/presentations\/sculpin\">like Sculpin<\/a> don't have a database like Drupal.<\/p>\n\n<p>The files are the database.<\/p>\n\n<p>In [my website repository][3], the <code>source\/_presentations<\/code> directory contains the files for my presentation pages, so these could be considered the presentations table and rows.<\/p>\n\n<p>But, because my content is in plain text files, they're very easy and quick to search in a text editor or on the command line using tools like <code>grep<\/code>.<\/p>\n\n<p>It's very easy and fast for me to find an old daily email, blog post or article I've written when I need to.<\/p>\n\n<p>This is also why I use <a href=\"https:\/\/www.oliverdavies.uk\/presentations\/rst2pdf\">rst2pdf for my presentation slides<\/a> and write them in reStructured text. It's very fast to find and re-use content.<\/p>\n\n<h2 id=\"counting-my-presentations\">Counting my presentations<\/h2>\n\n<p>Another example is being able to quickly count the number of presentations I've given.<\/p>\n\n<p>Here's an example of the front matter section from one of my presentations:<\/p>\n\n<pre><code class=\"markdown\">events:\n - name: PHP South West\n date: 2024-02-14\n location: Bristol, UK\n urls:\n video: https:\/\/www.youtube.com\/watch?v=axy6ltc9meA\n demo: https:\/\/phpsw-sculpin-demo.oliverdavies.uk\n - name: BrumPHP\n date: 2024-05-23\n location: Birmingham, UK\n url: https:\/\/www.eventbrite.com\/e\/brumphp-23rd-may-2024-tickets-803037766577\n - name: PHP Berkshire\n date: 2024-08-28\n location: Reading, UK\n urls:\n slides: \/files\/presentations\/sculpin\/php-berkshire.pdf\n website: https:\/\/www.meetup.com\/php-berkshire\/events\/301850284\n - name: PHP Thames Valley\n date: 2026-03-20\n location: Oxford, UK\n urls:\n slides: \/files\/presentations\/sculpin\/php-thames-valley.pdf\n code: https:\/\/code.oliverdavies.uk\/opdavies\/sculpin-demo\/src\/branch\/php-thames-valley\n website: https:\/\/www.meetup.com\/php-thames-valley\/events\/305915971\n<\/code><\/pre>\n\n<p>Each presentation has a list of events, as most presentations I've given multiple times.<\/p>\n\n<p>Each event has a <code>date<\/code> that I can extract with <code>grep<\/code>:<\/p>\n\n<pre><code class=\"plain\">grep -r \"date:\" source\/_presentations\/*.md\n\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2020-12-08\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2023-10-17\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2024-05-10\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2024-11-20\nsource\/_presentations\/test-drive-twig-with-sculpin.md: date: 2015-07-25\nsource\/_presentations\/things-you-should-know-about-php.md: date: 2019-01-28\nsource\/_presentations\/things-you-should-know-about-php.md: date: 2022-03-09\nsource\/_presentations\/things-you-should-know-about-php.md: date: 2023-01-12\nsource\/_presentations\/upgrading-your-site-drupal-9.md: date: 2020-09-02\nsource\/_presentations\/upgrading-your-site-drupal-9.md: date: 2020-09-23\nsource\/_presentations\/upgrading-your-site-drupal-9.md: date: 2021-04-22\nsource\/_presentations\/using-illuminate-collections-outside-laravel.md: date: 2017-12-21\nsource\/_presentations\/using-illuminate-collections-outside-laravel.md: date: 2018-08-28\nsource\/_presentations\/working-without-workspace.md: date: 2023-04-06\nsource\/_presentations\/working-with-workspace.md: date: 2020-08-11\nsource\/_presentations\/working-with-workspace.md: date: 2020-09-09\nsource\/_presentations\/working-with-workspace.md: date: 2021-02-02\n<\/code><\/pre>\n\n<p>To count them, I can add <code>| wc -l<\/code> to count the number of lines.<\/p>\n\n<p>But what if I have presentations in the future I don't want to count?<\/p>\n\n<p>To show just the dates, I can pipe the output to <code>awk<\/code> and only print the last item:<\/p>\n\n<pre><code class=\"plain
"format":"full_html",
"processed":"\n <p>Static site generators <a href=\"https:\/\/www.oliverdavies.uk\/presentations\/sculpin\">like Sculpin<\/a> don't have a database like Drupal.<\/p>\n\n<p>The files are the database.<\/p>\n\n<p>In [my website repository][3], the <code>source\/_presentations<\/code> directory contains the files for my presentation pages, so these could be considered the presentations table and rows.<\/p>\n\n<p>But, because my content is in plain text files, they're very easy and quick to search in a text editor or on the command line using tools like <code>grep<\/code>.<\/p>\n\n<p>It's very easy and fast for me to find an old daily email, blog post or article I've written when I need to.<\/p>\n\n<p>This is also why I use <a href=\"https:\/\/www.oliverdavies.uk\/presentations\/rst2pdf\">rst2pdf for my presentation slides<\/a> and write them in reStructured text. It's very fast to find and re-use content.<\/p>\n\n<h2 id=\"counting-my-presentations\">Counting my presentations<\/h2>\n\n<p>Another example is being able to quickly count the number of presentations I've given.<\/p>\n\n<p>Here's an example of the front matter section from one of my presentations:<\/p>\n\n<pre><code class=\"markdown\">events:\n - name: PHP South West\n date: 2024-02-14\n location: Bristol, UK\n urls:\n video: https:\/\/www.youtube.com\/watch?v=axy6ltc9meA\n demo: https:\/\/phpsw-sculpin-demo.oliverdavies.uk\n - name: BrumPHP\n date: 2024-05-23\n location: Birmingham, UK\n url: https:\/\/www.eventbrite.com\/e\/brumphp-23rd-may-2024-tickets-803037766577\n - name: PHP Berkshire\n date: 2024-08-28\n location: Reading, UK\n urls:\n slides: \/files\/presentations\/sculpin\/php-berkshire.pdf\n website: https:\/\/www.meetup.com\/php-berkshire\/events\/301850284\n - name: PHP Thames Valley\n date: 2026-03-20\n location: Oxford, UK\n urls:\n slides: \/files\/presentations\/sculpin\/php-thames-valley.pdf\n code: https:\/\/code.oliverdavies.uk\/opdavies\/sculpin-demo\/src\/branch\/php-thames-valley\n website: https:\/\/www.meetup.com\/php-thames-valley\/events\/305915971\n<\/code><\/pre>\n\n<p>Each presentation has a list of events, as most presentations I've given multiple times.<\/p>\n\n<p>Each event has a <code>date<\/code> that I can extract with <code>grep<\/code>:<\/p>\n\n<pre><code class=\"plain\">grep -r \"date:\" source\/_presentations\/*.md\n\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2020-12-08\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2023-10-17\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2024-05-10\nsource\/_presentations\/tdd-test-driven-drupal.md: date: 2024-11-20\nsource\/_presentations\/test-drive-twig-with-sculpin.md: date: 2015-07-25\nsource\/_presentations\/things-you-should-know-about-php.md: date: 2019-01-28\nsource\/_presentations\/things-you-should-know-about-php.md: date: 2022-03-09\nsource\/_presentations\/things-you-should-know-about-php.md: date: 2023-01-12\nsource\/_presentations\/upgrading-your-site-drupal-9.md: date: 2020-09-02\nsource\/_presentations\/upgrading-your-site-drupal-9.md: date: 2020-09-23\nsource\/_presentations\/upgrading-your-site-drupal-9.md: date: 2021-04-22\nsource\/_presentations\/using-illuminate-collections-outside-laravel.md: date: 2017-12-21\nsource\/_presentations\/using-illuminate-collections-outside-laravel.md: date: 2018-08-28\nsource\/_presentations\/working-without-workspace.md: date: 2023-04-06\nsource\/_presentations\/working-with-workspace.md: date: 2020-08-11\nsource\/_presentations\/working-with-workspace.md: date: 2020-09-09\nsource\/_presentations\/working-with-workspace.md: date: 2021-02-02\n<\/code><\/pre>\n\n<p>To count them, I can add <code>| wc -l<\/code> to count the number of lines.<\/p>\n\n<p>But what if I have presentations in the future I don't want to count?<\/p>\n\n<p>To show just the dates, I can pipe the output to <code>awk<\/code> and only print the last item:<\/p>\n\n<pre><code class=\"p