Content CI/CD
nnag.me content and assets sync
Your stupid content, those written in markdown and their more stupid assets. Your data scattered on your daily driver, and also those on the carthage. Rewrite all of those junk content, find them scatter around your stupid directories. Why would you even bother did that? It happens because you are lazy and have no real motivation on writing it.
Then why still going ?
The basic idea is to compensate your laziness and stupidiy, lets use another tool to help you manage your stupid contents. As for our current huge design, all of the publish content will be synced
Workarounds
Lets say you are too lazy to stare at your uglly writing environment. Now you have one more reason to not writing. Good isn’t it. one more excuse we might just dismantle the whole system as well. As ugly as it seems you still need this system. Store your notes locally is twice the disaster than this current setup already. Besides, who knows maybe some day your stupid notes will attract equally stupid people to disccuss on this stupid topic.
Now, lets put all of those rants away for a moment and start talking about the real solution. You will start with the cause, which in this matter is unfinished contents that scatter and got published on your stupid site.
GIT
Contents
As you now remember, currently you got a place to distirbute your piece of files without doing some wizardy tinkering on your poor machine. Yes, it is your git server git.nnag.me. Previously used to store your equally stupid codes, remnants and reminder of your failure and mistakes in the past.
The basic plan is to setup a repository just for the contents. You will create, modify, remove or redacted your contents from somewhere else far from the poor server. This repository then will be sync into your hugo service.
# Current Setup
/content/
_index.md
about.md
archives.md
/hompage/
_index.md
/post/
_index.md
ntru-iot.md
...
/project/
_index.md
...
/publication/
_index.md
...
Images
For images sync we need to use nginx to redirect the static root directory.