Commit graph

102 commits

Author SHA1 Message Date
c44990643e Set talk type for existing talks 2020-08-21 11:35:04 +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
4f18552c5a Organise tailwind.config.js 2020-08-15 20:46:13 +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
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
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
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
097f60411d Adjust page widths 2020-07-14 21:57:22 +01:00
86c3edbcaf Adjust page widths 2020-07-14 13:20:24 +01:00
58036c7ab9 Fix collapsing page widths
Fix inconsistent page widths on some pages such as blog and talks, by
adding a width (i.e. a `w-full` class) as well as a maximum width.
2020-07-02 18:13:05 +01:00
6350054e45 Fix PHPCS errors 2020-06-30 17:34:42 +01:00
9e3064ca21 Add tests for counting previous talks
References 
2020-06-30 12:50:21 +01:00
98ac66495f Set line heights for heaings 2020-06-27 11:24:20 +01:00
70ab7f56a0 Add spacing between footer and main content 2020-06-27 01:10:50 +01:00
3c814fca05 Use CSS Grid for page columns 2020-06-27 01:01:01 +01:00
2b061539d5 Fix spacing issues in various places 2020-06-27 00:25:55 +01:00
d7aaeb0ca6 Add a test for if a post has a tweet 2020-06-26 20:20:12 +01:00
f37e69f6f2 Refactor to use a Collection in the test
References 
2020-06-26 02:14:23 +01:00
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 
2020-06-26 02:06:32 +01:00
deb6f26836 Add webpack aliases for CSS and JS directories 2020-06-16 00:12:47 +01:00
0215e31154 Move CSS and JS into assets 2020-06-16 00:04:46 +01:00
fec0feff36 Re-add npm scripts for development and production
References 
2020-06-12 02:17:30 +01:00
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 
2020-06-10 12:06:09 +01:00
53257d1709 Add a command for updating old tag names
Fixes 
2020-06-01 20:12:27 +01:00
b49b487590 Fix PHPStan and PHPCS errors 2020-06-01 19:03:25 +01:00
1207df285f Fix undefined index notice on non-node pages
Fixes 
2020-06-01 11:48:55 +01:00
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
eb5b41262f Display events in an unordered list
References 
2020-05-31 20:56:28 +01:00
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 
2020-05-31 20:56:28 +01:00
45fda0fed1 Refactor existing tests
References 
2020-05-31 18:43:10 +01:00
a36654cfbb Remove custom migration code
References 
2020-05-29 22:48:57 +01:00
c25eaf4ee1 Split hooks into separate files, load with Finder 2020-05-29 22:35:33 +01:00
fafe64dac7 Refactor talks to keep existing tests passing
References 
2020-05-29 22:00:12 +01:00
165b6e8195 Refactor to use a Post class
References 
2020-05-29 21:46:17 +01:00
79eb9bef0b Include widgets.js on blog posts that need it
Fixes 
2020-05-29 21:07:59 +01:00
22533eba56 Only show posted date on full articles 2020-05-27 08:52:43 +01:00
1347c93b96 Load hash salt from file if it exists 2020-05-27 08:48:49 +01:00
3006cfab02 Update 'submitted by' text and styling
References 
2020-05-27 02:01:24 +01:00
9f40174974 Update spacing in various places in the theme 2020-05-26 23:16:47 +01:00