Managed to grab another .moe domain that I want to use the backend of holo.moe with, but want to avoid creating two separate repos for each. This means updating this to allow easy adding of different sites.
Majority of the code shouldn't need changed, but there is a few things I'm going to list here which need to be done:
top.html & about.html need to differ per site.
top.html could easily be changed to use vars for various things.
about.html could use vars too, but it would be a bit more messy.
analytics_id should change per site
per site json config files, to keep all that mess outside of the gruntfile
repo needs to be renamed to something which covers both sites (unsure what at this point in time)
posts.json/compiled.json and the images need to moved to specific site folders
favicon.ico, robots.txt, *-imgarchive.zip & sitemap.xml are all site specific, which means simply dumping them in misc will no longer work
It may be worth doing #11, aswell as one to autogenerate the robots.txt.
grunt commands should require something like a site-specific arg to be passed for any of the command to work (unless there is a better way of doing things)
Another thing I'd like to consider before doing all this, is doing a complete move from preprocess > jade.
Played about with jade recently and it seemed like a better preprocess. My only issue is the lack of decent pretty printing
Unsure how dev/prod folders will work with multiple sites...
Some of the getPost functions were built with holo.moe in mind, tweaking may not be so easy.
What I mean is the original language of whatever. If posted title was JP, must mark as such. If artists original name is in JP, it must be marked as such.