Last year I wrote and formalised my two #hugo templates. One for my blog, very light and text focussed, and the second pictures (and a bit video) focussed.
I use them for my blog and my photo album, have a look.
git links :
https://github.com/22decembre/random3
https://github.com/22decembre/Berenice
Comments are welcome or even help / requests to improve.
Does anyone know how to get Hugo the site builder to not fuck up a "tel:53424325" link? I'm trying to create one in a template with "<a href="tel:48g1[948" and instead I get a link to some "mysite.com/#gibberish".
I tried putting the whole html in a string and outputting that but Hugo decided I meant to output a bunch of processed crap so I get <a href="link I want">
I feel like I just need a command that says, "Don't fuck with this, just spit it out," but I can't find.
Al blog: Automatitzant la publicació del web
https://www.manelguerra.com/blog/automatizant-publicacio-web/
Al 2022 vaig canviar la gestió dels continguts del blog de Wordpress a Hugo, per generar un codi més net, més lleuger i més àgil. Ara bé, Hugo genera la pàgina sencera de manera offline i em calia pujar-lo cada vegada al servidor1. Durant un temps he anat tirant del bonic mètode de pujar-ho tot per FTP al servidor… però això és lent, ineficient, feixuc i repetitiu. Una murga d’opció. Així que, per ganduleria, he fet un petit script en bash per agrupar tota la feina en una crida i estalviar temps i errors (a github: https://github.com/mnguerra/deployhugo2web)
Today's personal programming challenge: working out how to traverse a directory structure in Go and do the following:
1. If a directory, create the same path under another path (e.g. content/mydir -> output/mydir).
2. If a file, either copy it as-is to the same path (e.g. content/my.pdf -> output/my.pdf) or run it through a function to convert it (e.g. content/my.md -> output/my.html).
This for an extremely simple static site generator, as I'm fed up with Hugo.
Sooo I got so many amazing responses to the #stealthsolar question, new ideas/concepts and examples it has inspired me to get on with the website, I'm using the #hugo book theme and have managed to write the introduction. The goal will be to have sections on each location (shed, wall, trailer etc) and then also sections with some simple guides.
I haven't really written this way for years so it's a bit of a new experience and it got me thinking, if the website writing goes well could there be a book in it? I appreciate I'm thinking way ahead but I think it's the sort of book I would buy.