Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo website pipeline proposal #2

Open
drmowinckels opened this issue Dec 7, 2021 · 7 comments
Open

Hugo website pipeline proposal #2

drmowinckels opened this issue Dec 7, 2021 · 7 comments

Comments

@drmowinckels
Copy link
Contributor

Hugo is a static website generator. Its fast and realiable, and we can easily build it our selves, with no extra costs.

Website build proposal:

  • use this repo for all content for the website
  • build the website using github actions
  • deploy to to the web using Netlify (we qualify for free team account there)

I've done this for my own webpage and also for R-Ladies

@kasbohm
Copy link
Member

kasbohm commented Dec 7, 2021

I like it, good plan.
Do you have a scaffold/boilerplate you would like to start from, or start from scratch?
Netflify free tier?

@drmowinckels
Copy link
Contributor Author

Netlify free tier is more than enough, especially using the netlify cli in github actions, means netlify it self will not have much build time. And getting an open source team is mostly so that more than one user from us can access the Netlify account and administer from the Netlify side.

When it comes to hugo themes, I have in #1 listed some I think might be good starting points, that I can build from.

I am partial to any theme using bootstrap, as I have been thinking of making a lcbc custom bootstrap css we can use on various projects.

@drmowinckels
Copy link
Contributor Author

example of github action for building the site:

https://github.com/Athanasiamo/DrMowinckels/runs/4421312140?check_suite_focus=true

this compiles my personal webpage. THere's lots we can do in terms of setting up scripts to update publications/citations etc.

Another example is the R-Ladies webaite, which also grabs other private repos before building
https://github.com/rladies/website/actions/runs/1547194312

@drmowinckels
Copy link
Contributor Author

One thing that the Rladies website is a nice example of, is the parts where we also check for the json data validity before building the page. This is convenient as we'd likely use hugo data templates for things like projects and staff pages, and having an automatic check on whether the jsons are in valid format before building is really convenient.

For adding new jsons, we can also create magic links with github, that prepopulates a newly initiated file through github with content (like json), so that people will only need to alter the values in the json, not the keys or general json setup.

@drmowinckels
Copy link
Contributor Author

made a boilerplate in the repo now, so you can have a peak at how it works.

@kasbohm
Copy link
Member

kasbohm commented Dec 7, 2021

Awesome, I see the advantages and flexibility of using GHA for pulling data etc.

Just exploring (too many) possibilities and solutions 🤪

@drmowinckels
Copy link
Contributor Author

I have no experience or knowledge about these things, but I'm sure we can figure it out together when we get there :)

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

No branches or pull requests

2 participants