I’ve been using rig3 as a static blog generator for years. It’s reasonably featureful and I’ve hacked it to do what I need, but
- I’m likely the last user of that code
- it’s becoming unbearably slow because it regenerates all pages which themselves contain a time index at the top, causing work that lasts over 60 seconds and an rsync that’s also doing too much work to push to my main server.
Obviously hugo fixes both these problems
But can it do the following?
See: http://marc.merlins.org/perso/linux/ for an example.
- One thing I really like with rig3 is that I write this file:
http:// marc.merlins.org/Pix/albums/Trips/20130618_France/20130628_Day11_Carcasonne/index.izu
I locate it inside this picture gallery:
http:// marc.merlins.org/Pix/?album=Trips/20130618_France/20130628_Day11_Carcasonne
and it makes this post, with links back to the picture library (had to break the link, I can only post 2, this sucks)
http://
marc.merlins.org/perso/france2013/post_2013-06-28_France-Day-11_-Arles-and-Carcasonne.html
(had to break the link, I can only post 2, this sucks)
With rig3, the rigimg tag runs my own script with a link to the picture as input, my script generates a thumbnail of the right size in the rig3 directory, and rig3 generates a page with a link to this:
http:// marc.merlins.org/blogimg/thumb1024_3753_20130628_Day11_Carcasonne.jpg
with the link pointing to a custom URL I build myself to give this:
http:// marc.merlins.org/perso/gps/gmap/20130618_France.php?lat=43.206735905&lon=2.365729725&name=photo&desc=3753_20130628_Day11_Carcasonne&label=photos&url=%2FPix%2FTrips%2F20130618_France%2F20130628_Day11_Carcasonne%2F3753_20130628_Day11_Carcasonne.html&thumbnail=%2Fblogimg%2Fthumb1024_3753_20130628_Day11_Carcasonne.jpg
(grr, I had to break this URL too for my post to be accepted)
Generally, can I write yaml files in picture directories like
http:// marc.merlins.org/Pix/albums/Trips/20130618_France/20130628_Day11_Carcasonne/
and have hugo automatically pick them up and generate a post there the image links go to the library?
-
I use categories you see at the top, I hugo can do this, but I have hidden categories like http://
marc.merlins.org/perso/france2013/ (warning very big page to load). Can hugo do hidden categories? -
for a page big like the one above, can hugo generate 3 index pages?
a) http:// marc.merlins.org/perso/france2013/ (everything)
b) abbreviated posts with permalinks
c) links only, like http:// marc.merlins.org/perso/france2013/links.html -
I generate my blog twice, once with private posts and all public posts, and another time with public posts only (all posts with a public category end up in the public blog too, and posts from private that link to public posts give a URL that is public). So I have 2 URLs
- the private one
- the public one: http:// marc.merlins.org/perso/blog/
Can hugo do this?
-
The hugo themes I looked at all wanted to truncate my posts on the index page. As you can see on my links above, I don’t want my posts truncated on the index page, but I do control how many posts end up on each index page (full index or category index) so that the resulting page isn’t too absurdly long
Is that possible with Hugo? -
For the rest, I use perrmalinks, posts in multiple categories, which hugo supports, and rig3 supports both
pages cut by month like
http:// marc.merlins.org/ perso/rc/2014-08.html#My-Best-FPV-Flight-With-My-Cularis
and permalinks for single posts like
http:// marc.merlins.org/ perso/rc/post_2014-08-25_My-Best-FPV-Flight-With-My-Cularis.html
Can I do all this with Hugo?
Thanks
Marc
(and sorry for all the broken links, I know it’s an attempt at anti spam, but this just made my post a lot less likely to be read and get help on due to the extra hoops I had to add. Not so cool…)