Oliver Davies
f6791516c5
Update site slogan
2021-01-13 21:19:01 +00:00
Oliver Davies
2b98b8624e
Remove DigitalOcean playbook
2021-01-13 20:12:50 +00:00
Oliver Davies
29a7af6e36
Update server IP address
2021-01-13 20:12:28 +00:00
Oliver Davies
5e9dc48896
Rename methods
2021-01-13 17:56:57 +00:00
Oliver Davies
7e06943be1
Rename event subscriber classes
2021-01-13 17:55:29 +00:00
Oliver Davies
17179fbfe4
Add a placeholder test, mark as skipped
...
References #344
2021-01-13 08:53:29 +00:00
Oliver Davies
661c26dcec
Add query condition for status
...
References #344
2021-01-13 08:52:51 +00:00
Oliver Davies
dee6051cd9
Add route cache context to related posts block
...
References #3
2021-01-11 02:32:17 +00:00
Oliver Davies
a3e8f03cf1
Cache the block, not the render array
...
References #3
2021-01-11 02:20:17 +00:00
Oliver Davies
cca8ed1970
Re-order array by key [ci skip]
...
References #3
2021-01-11 01:59:31 +00:00
Oliver Davies
f404019a39
Add cache tag for the current post
...
References #3
2021-01-11 01:58:42 +00:00
Oliver Davies
e716069022
Add list styling to related posts
...
References #3
2021-01-11 01:48:23 +00:00
Oliver Davies
52fa58733d
Set cache max age on related posts block
...
Based on https://www.drupal.org/node/2451555 , added a `max-age` value to
the related posts block.
References #3
2021-01-11 01:48:23 +00:00
Oliver Davies
105405e7f9
Display a list of related post titles
...
References #3
2021-01-11 01:48:21 +00:00
Oliver Davies
1f82a07226
Place the related content block
...
References #3
2021-01-11 01:39:54 +00:00
Oliver Davies
6436e3edb3
Generate a new block for related posts
...
References #3
2021-01-11 01:39:44 +00:00
Oliver Davies
3546ac427a
Extract a method to contain the query logic
...
Group all of the query logic into one method, as this will make it more
readable and this logic is likely to grow.
References #3
2021-01-10 22:38:37 +00:00
Oliver Davies
ae0024f335
Return an empty Collection if there are no posts
...
Return an empty Collection if there are no related posts for the given
post.
References #3
2021-01-10 22:38:37 +00:00
Oliver Davies
059e237600
Prevent duplicate terms being created
...
Within the `PostFactory` class, ensure that when using the `withTags`
method and creating tag terms that an existing term doesn't already
exist for a given name before trying to create it.
With the previous implementation, there would be multiple terms if the
PostFactory was used multiple times with the same tag name.
Given that `PostFactory` now has a dependency on `EntityTypeManger`,
this has been added as a service within `opdavies_blog_test` and needs
to be resolved from the container before trying to use it within a test.
This commit also updates the usages in `PostTest` so that those tests
continue to work and pass.
References #3
2021-01-10 22:38:36 +00:00
Oliver Davies
b90ca42e87
Refactor to use an entity query
...
Refactor from using `loadByProperties` to using an entity query.
`loadByProperties` doesn't allow for passing multiple values for a
single property such as multiple tags to compare against, and also means
that removing the current node can be done in the query rather than
filtering it out of the Collection.
This might also be a more performant solution if we can do the grouping
and sorting of the results in the query rather than needing to perform
additional steps on the result.
References #3
2021-01-10 22:38:02 +00:00
Oliver Davies
d7f3d8c482
Return related posts for a specified blog post
...
Add the initial code for specifying a blog post and returning related
posts. This includes adding a repository for related posts, and adding
it as a service within the `opdavies_blog` module.
References #3
2021-01-10 22:38:00 +00:00
Oliver Davies
62424d5b04
Add PostTestBase
...
Add a base test for writing kernel tests for posts, so that it will be
easier to start writing the tests for related posts.
References #3
2021-01-10 22:37:28 +00:00
Oliver Davies
59620f8a51
Add .theme file to the PurgeCSS config
...
Ensures that any classes in `opdavies.theme` are not purged in a
production CSS build.
References #341
2021-01-10 22:15:48 +00:00
Oliver Davies
3b6ad20486
Move padding from list items to links
...
So that the padding takes up the full space within the tab, move the
padding to the link element. This requires adding a preprocess function
to the theme file and removing the classes from the local task template.
References #341
2021-01-10 22:05:50 +00:00
Oliver Davies
9bcb8bb847
Add negative margins to re-align tabs
...
References #341
2021-01-10 22:05:46 +00:00
Oliver Davies
b2641662d2
Add tab styling
...
References #341
2021-01-10 22:05:37 +00:00
Oliver Davies
654d0f65f7
Flex lists of local tasks
...
References #341
2021-01-10 22:05:22 +00:00
Oliver Davies
bb2363457c
Add templates for local tasks
...
References #341
2021-01-10 22:05:18 +00:00
Oliver Davies
90e0ca8561
Ensure .git directories within modules are removed
...
This was previously done automatically by the
topfloor/composer-cleanup-vcs-dirs Composer plugin, though it's not yet
Composer 2 compatible.
Without this, `web/modules/contrib/plausible/.git` remains and causes
the contrib modules directory to appear whenever `git status` is run.
2021-01-10 20:10:45 +00:00
Oliver Davies
2e94abab55
Add some additional empty tests to fill in later
2021-01-10 20:00:14 +00:00
Oliver Davies
bbca137a83
Rename the test method
2021-01-10 19:57:08 +00:00
Oliver Davies
c4abde6797
Uninstall the views_ui module
...
`dblog` was uninstalled in #291 . We still need `menu_ui` to add menu
links to content, and `field_ui` for Layout Builder.
Fixes #57
2021-01-10 19:46:57 +00:00
Oliver Davies
55e4df8e9d
Uninstall the dblog module
...
Fixes #291
2021-01-10 19:45:04 +00:00
Oliver Davies
890211578c
Remove HTML slides field for talks
...
Fixes #335
2021-01-10 19:37:06 +00:00
Oliver Davies
383c0d0fdf
Push to IFTTT
...
References #328
2021-01-10 19:14:24 +00:00
Oliver Davies
790b221646
Save post as sent to social media
...
References #328
2021-01-10 19:13:00 +00:00
Oliver Davies
e617e9984d
Return early if the post shouldn't be pushed
...
References #328
2021-01-10 19:06:37 +00:00
Oliver Davies
73271de39a
Move logic for if a post should be pushed
...
References #328
2021-01-10 19:06:36 +00:00
Oliver Davies
baebc4fd25
Add queue worker
...
References #328
2021-01-10 19:04:30 +00:00
Oliver Davies
ec6ac1d798
Start refactoring to use a queue
...
References #328
2021-01-10 18:12:14 +00:00
Oliver Davies
af25afe2cf
Test that a queue entry is added for a post
...
References #328
2021-01-10 18:11:11 +00:00
Oliver Davies
f42eb27e78
Use localhost for the database server
2021-01-07 20:40:51 +00:00
Oliver Davies
f6ccdd3bcb
Disable failing deployment step
...
References #337
2021-01-07 20:37:10 +00:00
Oliver Davies
f66cc810ea
Re-add deployment steps
2021-01-07 20:36:48 +00:00
Oliver Davies
4d3cf095fd
Revert "Update Composer on the web server"
...
This reverts commit 129857be92
.
2021-01-07 20:32:20 +00:00
Oliver Davies
350cde177c
Revert "Add --no-interaction argument"
...
This reverts commit 2fb52df7c8
.
2021-01-07 20:32:18 +00:00
Oliver Davies
c4bf400ca6
Remove the separate db server
2021-01-06 10:11:21 +00:00
Oliver Davies
9c6a9c6b47
Give the server both the web and db roles
2021-01-06 10:11:05 +00:00
Oliver Davies
ce7209ac74
Ensure that the translated text is rendered
...
Fixes #334
2021-01-04 22:01:42 +00:00
Oliver Davies
c7d38ea6fb
Export metatag config changes
2021-01-04 18:15:11 +00:00