Email or username:

Password:

Forgot your password?
shom 🐧📷🤿🏔️🪚

I decided to try out the Gum (single Go binary) by @charmcli to make adding photos easier to my Hugo static site. This is all done with pretty basic bash scripting (the only kind I'm capable of)! It was impressively easy it was to use and while I don't like additional dependencies, this one is worth it.

I definitely will be making a lot more use of Gum (a whole Hugo interface)! Shout out to my #BelieveInFilm and #Hugo friend @bill for the nice photo layout.

#Charm #Gum #Hugo #Bash #CLI

9 comments
Tim

@shom @charmcli @bill I am checking this out now. Not sure if it’s something I need, but I use Hugo and post photos on it, so it sounds like I might be in the target audience.

shom 🐧📷🤿🏔️🪚

@ezwal @charmcli @bill I can my script if you're interested.
It's not needed for creating Hugo posts per se but to consistently capture tagging information for the post.
You could invert the process and add all the tags to the image exif and extract that as tags (something I want to do in the longer term).

Tim

@shom @charmcli @bill So I checked out Gum. Will definitely use it. But yeah, seeing your script for Hugo would be interesting. I currently do stuff like this with templates in my text editor, or more complicated python scripts. Something like what you showed could be very useful for ideas…

shom 🐧📷🤿🏔️🪚

@ezwal Yeah, I too was doing it with injecting templates and duct-tape, this is just held together with (chewing) Gum 😂

I decided to make it into standalone repo so it should be easy to test it out. Please let me know if you find any issues: github.com/shombando/filmPoste

I guess, I should now go scan some photos now that I have one less excuse!

@charmcli @bill

shom 🐧📷🤿🏔️🪚

I've made this into a standalone repo with more context and explanation:

github.com/shombando/filmPoste

Bill

@shom @charmcli This looks interesting. I'm currently pulling metadata from the Exif as part of my #Hugo theme. Creating the folder and index file is definitely something I could automate though.

shom 🐧📷🤿🏔️🪚

@bill the long term plan was to create a little helper app to get film EXIF information reliability and consistently into the original files at import. But EXIF tags are a mess it you want to retain the scanning information and it's a bigger mess if you are using camera scanning. So while I sort through that I wanted a quick thing to make posting photos easier.
I'll probably use gum for that import tool as well when I'm ready and then I'll reverse this tool to confirm tags instead of inputting.

Nelson Chu Pavlosky

@shom @charmcli This looks great! Is your code online anywhere? Have you done more work on a Hugo interface since this post? I'm tempted to try something similar for my Hugo sites.

EDIT: OK I found the script from this post git.sr.ht/~shom/filmPoster

Still curious if you intend to go further :-)

shom 🐧📷🤿🏔️🪚

@skyfaller hey thanks! Unfortunately I haven't tried more stuff yet.
I have the code on sourcehut¹ and github², please let me know if you do more with it. I had thought about making this into a full Hugo CLI front-end but I have a different work flow but I would love to help if you have a vision.
@charmcli

¹git.sr.ht/~shom/filmPoster
²github.com/shombando/filmPoste

@skyfaller hey thanks! Unfortunately I haven't tried more stuff yet.
I have the code on sourcehut¹ and github², please let me know if you do more with it. I had thought about making this into a full Hugo CLI front-end but I have a different work flow but I would love to help if you have a vision.
@charmcli

Go Up