Commit graph

114 commits

Author SHA1 Message Date
Oliver Davies 9b1a8fb3be Rename and re-organise custom modules
- Rename `opd_talks` to `opdavies_talks`
- Rename `custom` to `opdavies_blog`
2020-08-24 10:27:49 +01:00
Oliver Davies 6d9ecd8df0 Fix the ordering for future talks
Rather than the custom event sorting plugin being based on the `created`
value, this change adds a new `field_event_date` field to the talk node
type and uses this for the sorting instead.

This commit also adds a new `TalkDateUpdater` service that extracts
either the next event date if there is a future date, or the last past
event date if there is no future date, from `field_events` for each talk
and saves it into the event date field.

For consistency, and to ensure that the results are ordered correctly,
the talk date updater converts the date from a date string (e.g.
`2020-08-24`) into a UNIX timestamp, and the timestamp is saved in the
event date field. This can be changed at a later date if needed.

The talks view has been updated to use the updated sort plugin, and the
existing tests have been updated to use the new field.

References #204
2020-08-24 02:32:45 +01:00
Oliver Davies 6dbb135d96 Add pathauto pattern for blog post series terms
Fixes #63
2020-08-21 12:41:10 +01:00
Oliver Davies 5f00b1cf04 Add field for post amendments 2020-08-21 11:57:06 +01:00
Oliver Davies 1f742cc1f6 Re-order post fields 2020-08-21 11:41:47 +01:00
Oliver Davies 8e0f296701 Re-order talk fields 2020-08-21 11:39:56 +01:00
Oliver Davies ca43a935a9 Delete workshop content type 2020-08-21 11:37:53 +01:00
Oliver Davies 239b2c071c Add talk type field 2020-08-21 11:34:55 +01:00
Oliver Davies 7d71915518 Export other config changes 2020-08-21 00:52:54 +01:00
Oliver Davies 9db21f51f0 Remove Drupal Association member badge
Remove the Drupal Association member badge block, as the badge has been
included in the block below it.
2020-08-21 00:51:32 +01:00
Oliver Davies 79f7a43194 Export metatag settings 2020-08-21 00:50:11 +01:00
Oliver Davies c01296fe57 Hide the 'sent to social media' field
Prevent the 'sent to social media' field and value from being displayed
when a blog post is viewed.
2020-08-21 00:49:07 +01:00
Oliver Davies 1d57a53992 Hide site name, show logo 2020-08-21 00:48:48 +01:00
Oliver Davies 0f07d3d231 Add ability to add links to external posts
Add the ability to add links to external blog posts within my blog feed.
This is done based on a new `field_external_link` field that allows for
adding the external link URL and the domain name as the title.

The node links are then overridden to use the external link if there is
one, so the node title and 'read more' links are changed to use the
external link.

Currently, automated tweets are not generated for external posts.

Fixes #182
2020-08-14 16:43:04 +01:00
Oliver Davies 8385d6fef7 Don't send posts to social media multiple times
Check if a post has previously been sent to social media, by checking
the value of a `field_sent_to_social_media` field.

This field is hidden on the node add/edit forms, and populated when a
post is sent to social media. Once this happens, it will not be sent to
social media again.

This change also populates the field for all existing posts, so that
they won't be re-sent to social media either.
2020-08-12 22:33:16 +01:00
Oliver Davies 33646580a9 Export date and timezone settings 2020-07-19 20:58:44 +01:00
Oliver Davies bb0841e8d7 Add recommendation image style 2020-07-16 20:42:30 +01:00
Oliver Davies 1e2183caae Export recommendation block config
References #146
2020-07-15 21:06:45 +01:00
Oliver Davies 88b2503561 Add scheduler module, configure for blog posts
Fixes #152
2020-07-11 11:35:10 +01:00
Oliver Davies 58d56220de Show upcoming talks in chronological order
Update the ordering of the future talks on the talks page so that
upcoming talks are shown in chronological order (soonest first),
followed by past talks in reverse chronological order (most recent
first).

This still uses the `created` date for ordering, which is updated
automatically on saving the node to match the furthest future talk, but
I may want to move that into a custom node property at some point.

Fixes #140
2020-06-26 02:06:32 +01:00
Oliver Davies e4da12188e Hide title on Fathom block 2020-06-09 20:02:03 +01:00
Oliver Davies e43e8a2907 Export gin settings 2020-06-09 20:01:08 +01:00
Oliver Davies df11ac6b97 Add and configure Stage File Proxy locally
Fixes #116
2020-06-09 19:56:58 +01:00
Oliver Davies 7fca86a3f4 Add Gin and use as the admin theme 2020-06-06 11:28:32 +01:00
Oliver Davies 8314c12f28 Update blog feed path 2020-06-04 21:58:03 +01:00
Oliver Davies d7181dd0be Export fathom block 2020-06-04 21:57:33 +01:00
Oliver Davies 5dff22a07d Replace Google Analytics with Fathom 2020-06-02 22:32:03 +01:00
Oliver Davies 38548df58f Add and enable Menu Trail by Path module
Install the Menu Trail by Path module so that blog posts and talk pages
have their respective navigation links highlighted.

Fixes #110
2020-06-02 00:18:05 +01:00
Oliver Davies d9f9c835c3 Update blog path and title
References #48
2020-06-01 20:23:25 +01:00
Oliver Davies bb5cfe39ef Update alias patterns for blog posts and tags
References #48
2020-06-01 20:18:24 +01:00
Oliver Davies 28472a22fa Update RSS feed title
Fixes #105
2020-06-01 19:52:58 +01:00
Oliver Davies f5a0225c86 Update page title metatag for front page
Fixes #92
2020-06-01 12:54:25 +01:00
Oliver Davies 7b56d84362 Remove blank lines 2020-06-01 12:54:19 +01:00
Oliver Davies 8c75b44ba0 Hide "has tweet" field
Fixes #97
2020-06-01 12:53:30 +01:00
Oliver Davies 4a2aa00ce2 Revert "Remove migrate contrib modules"
This reverts commit 5af1d7b8fa.
2020-06-01 12:33:29 +01:00
Oliver Davies f2faef8d45 Remove default migration group
References #77
2020-05-29 22:48:57 +01:00
Oliver Davies 5af1d7b8fa Remove migrate contrib modules
References #77
2020-05-29 22:48:57 +01:00
Oliver Davies 165b6e8195 Refactor to use a Post class
References #78
2020-05-29 21:46:17 +01:00
Oliver Davies 79eb9bef0b Include widgets.js on blog posts that need it
Fixes #78
2020-05-29 21:07:59 +01:00
Oliver Davies 0adfeaadae Update date format
Fixes #71
2020-05-27 02:01:24 +01:00
Oliver Davies 9f9b1296e2 Add 'submitted by' information on posts
Re-add the submitted by date onto blog posts so that readers can see
when they were published.

References #71
2020-05-27 02:01:24 +01:00
Oliver Davies c480573b9e Add Honeypot module 2020-05-27 00:40:20 +01:00
Oliver Davies 286beba2c4 Enable syslog module 2020-05-26 23:17:58 +01:00
Oliver Davies 2632f09b7f Add space between items on blog and talks pages
Fixes #69
2020-05-23 15:16:42 +01:00
Oliver Davies 8b899abc00 Export metatag and layout builder config 2020-05-23 15:09:57 +01:00
Oliver Davies 4ff2d5f8c2 Update featured posts styling 2020-05-21 13:19:09 +01:00
Oliver Davies a066de22a4 Add promoted to admin content view 2020-05-21 12:35:35 +01:00
Oliver Davies c72b1b54f9 Add featured posts to the front page 2020-05-21 12:34:34 +01:00
Oliver Davies 732b1857b6 Enable Layout Builder for basic pages 2020-05-21 12:05:47 +01:00
Oliver Davies ec3cd3e362 Hide labels on event fields 2020-05-21 12:03:35 +01:00