Hugo
Migrated to Hugo
Working With Git Submodules in Hugo
Additional Updates: 2021-03-15
I’ve been really enjoying Hugo static-site generation. I’ve been customizing it as a book-writing framework, and it’s great!
That said, Hugo likes using git
submodules to manage themes and similar. As a
result of this, when you clone the “main” repo again, your submodules are bare.
One can change this behavior if one remembers, but I’m in such a rut of git clone <url>
that I don’t really think about getting my sub-modules until it’s
too late.
To clone and get submodules: git clone --recurse-submodules <url>
But if you forget…
git submodule update --init # foreach submodule listed in .gitmodules do...
--recursive # git update --init
To fetch latest:
$ cd submodule/path
$ git fetch
$ git reset --hard origin/master # or git checkout -q <origin/master SHA>
To add a new submodule:
$ git submodule add <remote_url> <destination_folder>
And to remove one:
$ git submodule deinit <submodule>
$ git rm <submodule>
References
- Stack Overflow
- I’ve also copied
gitaarik
’s awesome explanation (to save bit rot) after the jump.
Enabling Swap on Low Space Droplets
Organizing Blog Internals
Updated Tweet Archive
Recently I was looking through my Twitter archive, and realized that I had failed to port some images and that some of the tweets were really not that interesting. Building off of the work I had completed within the last week, I was able to get some data about which items needed to be culled. Also, while doing that, I found a few posts that had come loose from their images. I remedied that while working on this project.
Now tweets can be visited here.
Additional changes:
- Tweets that have an image now have a handy camera icon
- I added a year-and-month based navigation