From 1e981179fc999d873000683b869aef01284827af Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 10 Feb 2026 20:25:11 +0000
Subject: [PATCH] =jakevan latest
---
content/writing.php | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 107 insertions(+), 5 deletions(-)
diff --git a/content/writing.php b/content/writing.php
index 7039d9c..737966e 100644
--- a/content/writing.php
+++ b/content/writing.php
@@ -8,6 +8,8 @@
'hide_single' => false,
'redirectToAuthor'=> false,
'show_feed' => true,
+ 'show_directory'=> true,
+ 'directory' => 'Writing',
'favouritable' => true,
'karma' => false,
'icon' => 'pen-nib',
@@ -15,18 +17,86 @@
'slug' => 'writing',
'with_front' => false,
],
+
+ 'seo' => [
+ 'schema' => [
+ 'type' => 'CreativeWork',
+ 'name' => '{{post_title}}',
+ 'description' => '{{post_excerpt}}',
+ 'about' => ['@id' => '{{site_url}}/#writing'],
+ 'associatedMedia' => '{{post_thumbnail}}',
+ 'dateCreated' => '{{post_date}}',
+ ],
+ 'meta' => [
+ 'title' => '{{post_title}} | Human-made Writing',
+ 'description' => '{{post_excerpt}}',
+ ],
+ 'archive' => [
+ 'type' => 'CollectionPage',
+ 'name' => 'Canadian Content Writing. From Edmonton, Alberta.',
+ ],
+ ],
+ 'feed' => [
+ 'single' => [
+ 'pre_title' => 'Canadian Content Writing. From Edmonton, Alberta.',
+ ],
+ 'archive' => [
+
+ ],
+ 'config' => [
+ 'is_gallery' => false,
+ 'content' => 'writing',
+ 'context' => 'writing',
+ 'id' => [],
+ 'class' => [],
+ ]
+ ],
'fields' => [
+ 'post_status' => [
+ 'type' => 'radio',
+ 'label' => 'Status',
+ 'options' => [
+ 'publish' => 'Show',
+ 'draft' => 'Hide',
+ 'trash' => 'Scrap',
+ 'delete' => 'Permanently Delete'
+ ],
+ 'hidden' => true,
+ ],
'post_title' => [
'type' => 'text',
'label' => 'Title',
],
- 'featured_image' => [
- 'type' => 'image',
+ 'post_date' => [
+ 'type' => 'date',
+ 'label' => 'Date',
+ ],
+ 'post_thumbnail' => [
+ 'type' => 'upload',
'label' => 'Image',
],
+ 'project' => [
+ 'type' => 'taxonomy',
+ 'taxonomy' => 'project',
+ 'autocomplete' => true,
+ 'label' => 'Project',
+ ],
+ 'target' => [
+ 'type' => 'taxonomy',
+ 'taxonomy' => 'target',
+ 'autocomplete' => true,
+ 'label' => 'Target Audience',
+ ],
+ 'city' => [
+ 'type' => 'taxonomy',
+ 'autocomplete' => true,
+ 'taxonomy' => 'city',
+ 'label' => 'City',
+ ],
'gallery' => [
- 'type' => 'gallery',
- 'label' => 'Gallery',
+ 'type' => 'upload',
+ 'multiple' => true,
+ 'label' => 'Gallery',
],
'price' => [
'type' => 'number',
@@ -36,7 +106,39 @@
'type' => 'textarea',
'quill' => true,
'label' => 'Notes'
- ]
+ ],
+ 'needs' => [
+ 'type' => 'repeater',
+ 'label' => 'Needs',
+ 'fields'=> [
+ 'need' => [
+ 'type' => 'text',
+ 'label' => 'Need',
+ 'required' => true
+ ],
+ 'fulfilled' => [
+ 'type' => 'textarea',
+ 'quill' => true,
+ 'label' => 'How I fulfilled it'
+ ]
+ ]
+ ],
+ 'wants' => [
+ 'type' => 'repeater',
+ 'label' => 'Wants',
+ 'fields'=> [
+ 'need' => [
+ 'type' => 'text',
+ 'label' => 'Want',
+ 'required' => true
+ ],
+ 'fulfilled' => [
+ 'type' => 'textarea',
+ 'quill' => true,
+ 'label' => 'How I fulfilled it'
+ ]
+ ]
+ ],
],
'single_image' => false,
'upload_title' => 'Upload Artwork',
--
Gitblit v1.10.0