Commit graph

454 commits

Author SHA1 Message Date
Oliver Davies b83baa4c26 Ansible: prevent showing changed status when not changed 2020-06-17 00:12:31 +01:00
Oliver Davies 922ac14e6b Ansible: Optimise the autoloader 2020-06-16 23:45:46 +01:00
Oliver Davies deb6f26836 Add webpack aliases for CSS and JS directories 2020-06-16 00:12:47 +01:00
Oliver Davies 0215e31154 Move CSS and JS into assets 2020-06-16 00:04:46 +01:00
Oliver Davies fec0feff36 Re-add npm scripts for development and production
References #127
2020-06-12 02:17:30 +01:00
Oliver Davies 5ec999e3f2 Re-order deploy steps
Run database changes before importing configuration.

References #127
2020-06-12 02:15:52 +01:00
Oliver Davies 5745f51d4c Update core to 8.9 2020-06-12 02:08:05 +01:00
Oliver Davies b6f3d6ef91 Update default branch name
Change the default branch for deployments from `master` to `production`.
2020-06-10 22:13:54 +01:00
Oliver Davies 4f4470e4a0 Remove Google Analytics module
Remove the Google Analytics module from the codebase as it's no longer
used, and has since been replaced with Fathom Analytics
2020-06-10 22:11:27 +01:00
Oliver Davies e022935031 No cows 2020-06-10 21:26:55 +01:00
Oliver Davies edb8a59f84 Update Makefile
Added theme related rules:

- theme-build
- theme-build-prod
- theme-clean
- theme-install-dependencies
- theme-watch

References #41
2020-06-10 12:18:33 +01:00
Oliver Davies d343b4cdf2 Switch from Laravel Mix to Webpack Encore
- Updated npm dependencies
- Replaced `webpack.mix.js` with `webpack.config.js`
- Added `postcss.config.js`
- Removed the `src` directory and moved `css` and `js` to the root level
  of the theme
- Renamed `dist` to `build` and updated in libraries file

References #41
2020-06-10 12:06:09 +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 53257d1709 Add a command for updating old tag names
Fixes #53
2020-06-01 20:12:27 +01:00
Oliver Davies 28472a22fa Update RSS feed title
Fixes #105
2020-06-01 19:52:58 +01:00
Oliver Davies b49b487590 Fix PHPStan and PHPCS errors 2020-06-01 19:03:25 +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 208d535d95 Add pull-from-prod to Makefile
Add `pull-from-prod` to the Makefile, which downloads a database from
production, imports it and runs the post-import steps.

Fixes #79
2020-06-01 12:50:41 +01:00
Oliver Davies 4a2aa00ce2 Revert "Remove migrate contrib modules"
This reverts commit 5af1d7b8fa.
2020-06-01 12:33:29 +01:00
Oliver Davies 1207df285f Fix undefined index notice on non-node pages
Fixes #95
2020-06-01 11:48:55 +01:00
Oliver Davies 1e78139333 Update talk date test
Update the test for updating a talk node as it was essentially doing the
same as the test for creating a new talk node.

The test now ensures that the talk is saved before adding an event, and
that the talk created date is different to the original created date as
well as that it matches the latest event date.
2020-05-31 21:27:55 +01:00
Oliver Davies eb5b41262f Display events in an unordered list
References #74
2020-05-31 20:56:28 +01:00
Oliver Davies 56f3434c4a Automatically order events when a talk is saved
To ensure that the event dates for a talk are always in the correct
order, and to make the editing experience easier, this change
automatically re-orders the events on a talk node to be based on the
event date.

Fixes #74
2020-05-31 20:56:28 +01:00
Oliver Davies 45fda0fed1 Refactor existing tests
References #74
2020-05-31 18:43:10 +01:00
Oliver Davies 95a3187186
Add dependabot config 2020-05-30 15:26:32 +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 a36654cfbb Remove custom migration code
References #77
2020-05-29 22:48:57 +01:00
Oliver Davies c25eaf4ee1 Split hooks into separate files, load with Finder 2020-05-29 22:35:33 +01:00
Oliver Davies fafe64dac7 Refactor talks to keep existing tests passing
References #78
2020-05-29 22:00:12 +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 22533eba56 Only show posted date on full articles 2020-05-27 08:52:43 +01:00
Oliver Davies 1347c93b96 Load hash salt from file if it exists 2020-05-27 08:48:49 +01:00
Oliver Davies eecefc49cd Remove reference to old deploy key 2020-05-27 08:38:48 +01:00
Oliver Davies 0adfeaadae Update date format
Fixes #71
2020-05-27 02:01:24 +01:00
Oliver Davies 3006cfab02 Update 'submitted by' text and styling
References #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 14af222f35 Remove deploy keys 2020-05-27 00:50:44 +01:00