Skip to content

Conversation

@b-n
Copy link
Collaborator

@b-n b-n commented Jan 26, 2025

TODO:

  • Can we include the site theme using hugo modules instead of committing the theme
  • Remove GHA workflow
    • Make sure Netlify build workflow works
  • Netlify forms for sign up
    • Form validation is rather strict, doesn't accept example.com as a URL
  • Make the preview site working and a thing
  • Fix the fonts - they were pretty, but ben broke it on changing the theme to a module
  • Fix custom 404 page - doesn't seem to get picked up anymore

Future:

  • Check if we can remove some of the config boilerplate (e.g. taxonomies?)
  • See if we can do specific overloads for the template to reduce the layouts directory and the compiled css (just to make future change/enhancements easier
    • After we do this, we should hopefully be able to align the prettier 🤞

@netlify
Copy link

netlify bot commented Jan 26, 2025

Deploy Preview for twc-site-nl ready!

Name Link
🔨 Latest commit 8d84d3a
🔍 Latest deploy log https://app.netlify.com/sites/twc-site-nl/deploys/67a2786ecca1e100080aae3c
😎 Deploy Preview https://deploy-preview-54--twc-site-nl.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

b-n and others added 29 commits February 4, 2025 21:27
This changes adds a whole bunch of files for the new TWC NL website,
this time built with Hugo. (Proposing to merge into `hugo-twc` branch
just as a precaution for a double check to make sure it doesn't mess
things up.)

Main characteristics:
- Sections:
- **Landing page** with a gallery-style header, upcoming events and
features resources
  - **Events** page with both upcoming and past events
- **Resources** page with all resources, which currently is a single
resource about collective labour agreements
- **Join** page with a placeholder signup form --> still needs to be
matched up with the Netlify integration
- Language switch, between Dutch and English
- Search built-in

To dos:
- Make sure that join form works 😄 
- There are some issues in the styling of tags, so I've blocked those
out for the moment so that they're not shown, but we might want to
consider adding them back in at some point.
- Documentation and contributing guides still describe the old site, so
will have to update those at some point too
Hugo just sets a redirect on the root domain, where as netlify will look
at the browser headers and then decide what is the best site for someone
to be sent to (slightly nicer for natives)
This is opinionated. It's mainly to make things consistent so it's
harder to miss things when developing. e.g. developers often don't test
sites in multi languages. It is also harder to cater for the site url
diff when dealing with multiple languages (e.g. js vs go vs. hugo in go)
no more woff needed since woff2 has better compression, and it's ie11
which doesn't support woff.
There's some errors when running prettier, and I haven't currently got
the patience to figure it out for now. I have put it to manual run via
actions. It would be nice if prettie would show diffs, but I guess
they just want to trust instead of nit pick 🤷
We can/should just use a new form eventually, however we have zapier
limits etc. So this is just the easiest way (for now).
This change: 
- Adds a layout (`join-success`) for a landing page that the tech worker
will land on once they've filled out the **Join** form
- Adds EN and NL post-join landing pages that use the `join-success`
layout, with some info about next steps now that the tech worker has
completed the form

Co-authored-by: Ben Naylor <[email protected]>
This change: 
- Updates the `button` shortcode, such that the link that you specify
when the shortcode is used is language-relative, and you don't need to
add a prefix to a specific language.
- Removes language-specific prefixes on two pages on which the button
shortcode was used.


Co-authored-by: Ben Naylor <[email protected]>
This change shortens the text on the **Join** page, following an in-call
review suggestion during the last meetup.
It interrupts form entry, and this is the easiest way to fix this for
now.
It appears that the netlify preview site didn't pick up the redirects.
It's picking up the netlify.toml though, so let's use that instead.
This changes adds comparatively more privacy-friendly analytics with
[counter dev](https://counter.dev/).
@b-n b-n marked this pull request as ready for review February 4, 2025 20:30
@b-n b-n requested a review from csmeyns February 4, 2025 20:31
Copy link
Collaborator

@csmeyns csmeyns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes looks good 🚀

@b-n b-n merged commit 3ae3b41 into main Feb 4, 2025
5 checks passed
@b-n b-n deleted the hugo-twc branch February 4, 2025 20:33
@b-n b-n changed the title WIP: TWC - but it's built with hugo instead of jekyll TWC - but it's built with hugo instead of jekyll Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants