Commit graph

454 commits

Author SHA1 Message Date
Oliver Davies c023caf44c Hide the feedback URL on events 2020-09-09 21:18:51 +01:00
Oliver Davies 2d62c8ee54 Add feedback URL to event paragraphs 2020-09-09 21:17:52 +01:00
Oliver Davies fd274cda97 Remove references to slides
This is not being done with Nginx. I've pushed the slides to Netlify and
added CNAME records in Cloudflare to serve them as subdomains as
oliverdavies.uk in the same way that I am for Rebuilding Bartik,
Rebuilding Acquia etc.

Fixes #221
2020-09-09 08:43:34 +01:00
Oliver Davies 0f01551f26 Update Hook Event Dispatcher module
- Update the Hook Event Dispatcher module from `8.x-1.29` to `8.x-2.02`.
- Update custom modules after breaking changes from upgrading.

References #112
2020-09-06 12:15:59 +01:00
Oliver Davies 61442ed74c Make opdavies theme Drupal 9 compatible
References #112
2020-09-06 11:57:41 +01:00
Oliver Davies 596ee4979d Fix PHPCS issues 2020-09-04 22:20:30 +01:00
Oliver Davies 98fba9306f Fix PHPStan issues 2020-09-04 22:20:30 +01:00
Oliver Davies a08f93c188 Run PHPCS and PHPStan in GitHub Actions
Fixes #76
2020-09-04 22:20:29 +01:00
Oliver Davies cbe60209e6 Rename custom module directories
- Rename `opdavies_blog` to `blog`.
- Rename `opdavies_blog_test` to `blog_test`.
- Rename `opdavies_talks` to `talks`.
- Rename `opdavies_talks_test` to `talks_test`.

The files within the directories haven't changed, so there is no
breaking change caused by renaming the directories.

 Please enter the commit message for your changes. Lines starting
2020-09-04 21:25:36 +01:00
Oliver Davies d7d5a6c8a3 Split ci.yml into separate workflows
Split the `install` and `tests` jobs from `ci.yml` into their own
separate workflows.
2020-09-04 21:13:05 +01:00
Oliver Davies 1781a2cf01 Add Ansible role to fix Drupal file permissions
Add a new `drupal-permissions` Ansible role that resets the file and
directory permissions to match the ones described in
https://www.drupal.org/node/244924.

This will later be released to Ansible Galaxy, but for now it will
remain in this repository until the required changes are made and the
appropriate documentation is added.

Fixes #191
2020-09-04 20:23:07 +01:00
Oliver Davies 9b26d772a8 Remove dashes in hashtags, and don't lowercase
References #24
2020-09-04 19:45:30 +01:00
Oliver Davies 9219d10137 Run on insert and update rather than pre-save 2020-09-04 19:19:18 +01:00
Oliver Davies 061b1177f5 Fix config names 2020-09-04 19:18:25 +01:00
Oliver Davies 2617e29dec Refactor to use a factory class 2020-09-04 13:46:49 +01:00
Oliver Davies 10e4616e01 Don't include certain terms as hashtags in tweets
References #24
2020-09-04 12:31:53 +01:00
Oliver Davies c5c774290d Include tags as hashtags for automated tweets
References #24
2020-09-04 12:31:29 +01:00
Oliver Davies 150c974040 Add a test for converting a post to a tweet
References #24
2020-09-04 12:06:51 +01:00
Oliver Davies b77c301d8c Refactor to use a short function 2020-08-28 18:01:47 +01:00
Oliver Davies 59f85f02d5 Add new dependencies to fix PostTest 2020-08-28 13:08:40 +01:00
Oliver Davies 92f1c0f84c Refactor sending posts to social media 2020-08-28 13:02:20 +01:00
Oliver Davies 59a98b8d78 Automatically re-order tags on save
Fixes #167
2020-08-28 12:56:57 +01:00
Oliver Davies 5e107b48d6 Move test class
References #203
2020-08-28 10:59:07 +01:00
Oliver Davies ffe6fe9b68 Add tests for the TalkRepository
Fixes #203
2020-08-28 10:54:19 +01:00
Oliver Davies 87a9f28991 Update prose styling for code and pre elements
Fixes #210
2020-08-24 23:02:00 +01:00
Oliver Davies b4e6fe9234 Allow for manually triggering deployments 2020-08-24 11:49:40 +01:00
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 e4e898f22c Update talk next event date on cron
Run the `TalkDateUpater` service on each cron run to ensure that the
next event date for each talk is up to date.

Fixes #204
2020-08-24 02:36:04 +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 bdf225b05d Remove unused imports 2020-08-23 22:38:30 +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 4e8c464dc8 Re-order deployment steps
Ensure that the configuration import is run before the database updates,
so that any new fields are created that are needed within the update
steps such as `field_type` on the talk node type.
2020-08-21 12:06:24 +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 c44990643e Set talk type for existing talks 2020-08-21 11:35:04 +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 0c70e752a7 Move Dependabot config 2020-08-20 22:39:12 +01:00
Oliver Davies 5e267426fa Build 2020-08-20 21:18:55 +01:00
Oliver Davies 70681df30f Update logo and favicon 2020-08-20 07:40:21 +01:00
Oliver Davies f7b1e41977 Update lodash 2020-08-17 18:41:44 +01:00
Oliver Davies e4595afc81 Update elliptic 2020-08-17 18:17:27 +01:00
Oliver Davies 775b2c5248 Update Drupal core 2020-08-17 17:15:05 +01:00
Oliver Davies 4f18552c5a Organise tailwind.config.js 2020-08-15 20:46:13 +01:00