What do you think of replacing Github with Gitlab in this tutorial description? (Just because Gitlab seems to better resonate with the community’s values and is a good group to support)
Yeah, this works really smoothly. I’ve been building a few sites this way with the liminalgraph.hackalong.io as the first and currently playing with another one for networked services that I’ll share once Netlified. Speaking of which, you did the last one - how can I generate a subdomain on Hackalong.io to point Netlify at?
Gitlab can probably do it as well but the config files for the likes of netlify will be configured for GitHub at a guess so might need rewrite for noobs like me. The CI/CD stuff is cool though, I can iterate in realtime and its updating
I’m just trying to netlify a project myself now but am getting the error you mentioned last night, this is something to do with git inside git if I remember correctly:
“failed during stage ‘preparing repo’: Error checking out submodules: fatal: No url found for submodule path ‘themes/meghna-hugo’ in .gitmodules”
Make the theme part of your repository: just clone the theme, then run on the directory to remove the theme repository information, then in the theme directory:
rm -r .git
cd …
git add *
git commit -m"Added theme"
git push
Using gitsubmodules:
In your main directory: touch .gitsubmodules
Add the following lines in the file, remembering to change themename and author to the right values for your specific theme.
[submodule “themes/themename”]
path = themes/themename
url = https://github.com/autorr/themename.git
Thanks dude, I wen’t with option 2 as it looked simpler but Netlify still fails
To clarify what I’ve done I wnet into the static site repo via terminal and did a touch .gitsubmodules - the result was that terminal just jumped to the next line so assume that went fine.
I then went into the Hugo cargo.toml file within my text editor and added:
This didnt work and contained an error message saying couldn’t find it in .gitmodules so I deleted .gitsubmodules and repeated the same thing with .gitmodules instead. Both deploys failed but the latter attempt went slightly better with an error on the access token
Just wanted to say thanks for this idea, have now deployed it on hugo.guyjames.com and will be transferring it to the root domain when I’ve improved the CSS and removed some unnecessary content.
As a sidenote, I also had the build issue on Netlify, using the Indigo (indieweb-enabled theme), and the submodules approach fixed it. Also there was an issue where the tags had a # symbol in front and it refused to create the pages until I removed that. Luckily Atom has a search and replace for a whole project so that was easy enough.
I agree it is a very nice and rapid way of creating beautiful and fast websites! Thanks again.
Hey Guy, good to hear from you! Man, Hugo on Netlify really gave me a hard time but thats probably because I had no clue what I was doing … I eventually got the experiment loaded though with some hand holding from @Maija and @liminal’s: LunarpunkLabs.Hackalong.io if you wanna check it out! Nothing too serious there yet - just a first iteration to start gathering intentions/commitments towards something along those lines - which might evolve into an REA network of sorts when the time is right!
I checked your page out as well and I guess we really share some influences! Some really nice poets, artists and bards mentioned amongst them - only name missing for me personally is Mr Robert Fripp and KC
hey Josh, yeah it was a serious oversight not putting in KC, in fact one of my favourite bands and I finally got to see them last year in Barcelona, was amazing!
Very nice the lunarpunk site too! Keep me up to date with developments there please.
Even easier than this is this amazing webapp: https://app.stackbit.com/ - I made a Hugo-Netlify site in literally two minutes, and no fiddling with code. Of course I will fiddle with code to add the content and get it looking how I want it, but it’s pretty nice to have the options of various static site generators and several CMS hosts at the touch of a button. Plus it’s free with apparently no plans to ever charge for it.