Commit graph

331 commits

Author SHA1 Message Date
ffe6fe9b68 Add tests for the TalkRepository
Fixes 
2020-08-28 10:54:19 +01:00
87a9f28991 Update prose styling for code and pre elements
Fixes 
2020-08-24 23:02:00 +01:00
b4e6fe9234 Allow for manually triggering deployments 2020-08-24 11:49:40 +01:00
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
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 
2020-08-24 02:36:04 +01:00
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 
2020-08-24 02:32:45 +01:00
bdf225b05d Remove unused imports 2020-08-23 22:38:30 +01:00
6dbb135d96 Add pathauto pattern for blog post series terms
Fixes 
2020-08-21 12:41:10 +01:00
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
5f00b1cf04 Add field for post amendments 2020-08-21 11:57:06 +01:00
1f742cc1f6 Re-order post fields 2020-08-21 11:41:47 +01:00
8e0f296701 Re-order talk fields 2020-08-21 11:39:56 +01:00
ca43a935a9 Delete workshop content type 2020-08-21 11:37:53 +01:00
c44990643e Set talk type for existing talks 2020-08-21 11:35:04 +01:00
239b2c071c Add talk type field 2020-08-21 11:34:55 +01:00
7d71915518 Export other config changes 2020-08-21 00:52:54 +01:00
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
79f7a43194 Export metatag settings 2020-08-21 00:50:11 +01:00
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
1d57a53992 Hide site name, show logo 2020-08-21 00:48:48 +01:00
0c70e752a7 Move Dependabot config 2020-08-20 22:39:12 +01:00
5e267426fa Build 2020-08-20 21:18:55 +01:00
70681df30f Update logo and favicon 2020-08-20 07:40:21 +01:00
f7b1e41977 Update lodash 2020-08-17 18:41:44 +01:00
e4595afc81 Update elliptic 2020-08-17 18:17:27 +01:00
775b2c5248 Update Drupal core 2020-08-17 17:15:05 +01:00
4f18552c5a Organise tailwind.config.js 2020-08-15 20:46:13 +01:00
b6d0be4e70 Update .gitignore 2020-08-15 20:44:51 +01:00
bed98b4f97 Increase font size in navbar 2020-08-15 14:31:20 +01:00
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 
2020-08-14 16:43:04 +01:00
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
8761f9c4cc Revert "Build talk slides during deploy"
This reverts commit 5ae79ffa6e.
2020-08-12 21:16:44 +01:00
5ae79ffa6e Build talk slides during deploy 2020-08-12 18:19:04 +01:00
7fa7d762e0 Add slides repo as a submodule 2020-08-12 00:51:59 +01:00
6f680ddf35 Add "Working with Workspace" slides 2020-08-11 22:34:00 +01:00
1b2cbc1a9b Add and use Tailwind CSS typography plugin
Replace custom markup styles with Tailwind CSS's typography/prose plugin
(https://github.com/tailwindlabs/tailwindcss-typography).
2020-08-11 00:59:40 +01:00
fe7142e1f1 Improve accessibility of the nav toggle button
Improve the accessibility for the nav toggle button by adding a border
around the button when it is focussed on.

I've added a custom Tailwind CSS variant to do this using a custom
`focus-visible` variant in tailwind.config.js, and using the
https://www.npmjs.com/package/focus-visible polyfill.
2020-07-23 13:57:41 +01:00
95d4c4a03b Tidy up .gitignore 2020-07-22 02:40:07 +01:00
33646580a9 Export date and timezone settings 2020-07-19 20:58:44 +01:00
f488b5c023 Automatically create tweets for new posts 2020-07-19 20:15:44 +01:00
eafcb103b8 Set NODE_ENV in Encore config 2020-07-18 10:17:40 +01:00
533095d87f Fix photo position 2020-07-16 20:52:37 +01:00
ef500b5fd7 Change text colour for role 2020-07-16 20:43:59 +01:00
bb0841e8d7 Add recommendation image style 2020-07-16 20:42:30 +01:00
ebe5a7dbba Recommendation styling 2020-07-16 20:39:43 +01:00
dd42f3deac Fix missing edit links
Add the title prefix and suffix for recommendation block titles, which
fixes the missing edit links so the blocks are editable.

References 
2020-07-16 13:12:30 +01:00
16350b02fc Remove grid gap on mobile 2020-07-16 09:26:17 +01:00
ff77296e4c Style the recommendations block
References 
2020-07-15 21:06:51 +01:00
1e2183caae Export recommendation block config
References 
2020-07-15 21:06:45 +01:00
d26bd23d70 Automatically unlabel closed issues
Fixes 
2020-07-14 22:54:56 +01:00