Welcome to the new year, fellow gopherites! I notice some phloggers
have archived their 2017 posts into a sub-folder, with an apology
for breaking links. I see the most impact to that will be in the
'reply' posts where we link to one another, although the naming
convention from here on out should prevent that (phlog/ ->
phlog/2017/, for example). When I thought about archiving my posts,
I realized this a good reason to use gophermaps for a phlog - that
one layer of abstraction above raw directory indexes allows one to
archive posts transparently. In my case, I only needed to copy the
2017 posts into an empty subfolder, with their gophermap:
The gophermap I copied (in my case maintained using phlogit) uses
relative links to the current directory for each post, so it works
without modification. I then got rid of the duplicate 2017 files in
the main phlog/ directory, replacing them by symlinks to the copies
in the 2017/ subdirectory:
slugmax@iceland:~/gopher/phlog> find . ! -name gophermap -maxdepth 1 \
-type f \( -mtime +1 -a -mtime -364 \) \
| sed -e 's!^./!!' | xargs -I{} sh -c "rm -vf {}; ln -sv 2017/{}"
So now I have the 2017 posts archived neatly into a subdirectory,
but I have not broken any old links.