fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#gohugo

2 posts2 participants0 posts today

I'm making good progress on my website! I'm using Hugo with Kayal right now. May try to have a crack at making my own Hugo theme in the future.

Now I wanna know, what's the best place to host a static site made with Hugo? I've looked at GitHub Pages, Neocities and Nekoweb. Maybe a DigitalOcean VPS if I ever want to mess with other things beyond static sites but not at the moment.

It needs to at least be accessible via my domain.

Why Obsidian integrates better with #MkDocs than #GoHugo?

  1. MkDocs is really built for documentation (and notes), whereas Hugo are primarily for blogs
  2. Linking your notes in Obsidian translate into correct link in the output html files in MkDocs, whereas in Hugo you need to use rel or relref shortcodes.
Continued thread

Oh something else in #ObsidianMD that I did for #GoHugo convenience that I kinda regret: the public portion of my vault is structured as a set of leaf bundles. Which is great for keeping images and other resources close to the site content. But it's absolutely lousy for back linking and referencing other Obsidian notes (everything shows up as index in Obsidian instead of the name of the folder the leaf bundle lives in).

There's not a ton of content on my site yet, so I might really start hacking things up to eliminate the leaf bundles. I'll try to preserve the site structure through use of explicit slugs for existing content. But no promises.

Time for a new blog post :neocat_glasses: .

This time I used pure HTML and CSS to build a simple calculator.
You can read more about it here: https://ccw.icu/blog/coding/css-calculator/

I also spent way too long designing the tabbed HTML preview cards and got upset at the way hugo counts words (they count the words in the shortcodes inside a style tag) :neocat_dizzy:


#blog #writingmonth #css #html #gohugo #calculator #math
ccw.icuBuilding a calculator in CSS

OCOR version 0.2.0 released at gitlab.com/bit-man/our-content !!

A user tool to migrate your posts from different social networks to your own hosted site

In this new release:
- zip provided by medium.com can be used for post creation. No need to unzip it, just feed #OCOR with zip file
- ignore posts, in case you use a new #OCOR version fixing some bugs and don't want to rewrite some posts

If you are wondering what OCOR is and how it was designed, take a look at bit-man.guru/posts/our-content. Currently, supporting Twitter and medium.com (from requested data, zip file) and converts them to Hugo posts #gohugo

GitLabCreate posts from medium.com zip (v0.2.0) · Bit-Man / Our content our rules · GitLab Create posts from medium.com zip Ignore posts

Remember to audit your backups!

When I migrated my old Arch servers to Debian with ZFS last year I also changed the entire data layout on the arrays. I broke things out into smaller sized chunks to make ad hoc backups run swifter, modularize things so I stood a change of remembering what was what just by doing a directory listing, that kind of thing.

All week I've been working on finally getting a web site going for the root of this domain. Basically composed of trying out a bunch of hugo themes, loading some markdown files from another live site into the content directory to see how it renders, yadda, yadda.

In the process of doing this, at some point I must have fat fingered something and deleted/moved the source files for the active site. I only discovered this when trying to copy the posts from the active site to a new one I was testing with a new theme.

rsync -av ~oldsite/site/content/posts ~newsite/site/content/.
"... No such file or directory ..."

Wat...?

Ok, whatever, start looking at the incremental backups... hmm, not there... not there... not there... wat? List the backup crontabs again... no reference. Other host with backups that don't match this pattern... not there... WTAF?!

The location where I have my web dev stuff located is not backed up at all!

In the root of the array where this is located there are 4 other directories that are backed up but for some reason this one is not. Either I had a blind spot on it or I forgot or I didn't set it up because there were no web projects when the server was set up or...

I got lucky - had made a bunch of copies while experimenting during the week and was able to find "out of band" copies of the files. But, if during testing I had blown away all my testing data without knowing there were no backups I would have not been happy!

Anyway...

Audit your backups!

Test restoring from your backups!

I was quite proud of myself last night. I updated one of my blogs and did a bunch of background changes so that all the fonts and JavaScript and such are local. Changed some style and layout stuff that had been bugging me. Upgraded Hugo to the lastest version and fixed all the customizations of the theme I am using that broke as a result. I hadn't touched it since August. Great stuff, felt good to get back at it.

Today I noticed that the RSS feed has the wrong baseURL in it - the dev server TLD is stuck in all the XML files in the public directory. Spent something like 6 hours trying to fix it tonight with no success. Geez. Two AM... Time to step away.

#hugo#gohugo#web