Personal blogging website built with Cryogen:
The web server can be started from the my-blog
directory using either Leiningen:
lein serve # or lein serve-fast
or tools-deps:
clojure -X:serve # or clojure -X:serve-fast
The server will watch for changes in the content
and themes
folders and recompile the content automatically. The *-fast
variants perform fast but partial compilation of only the changed page/post.
You can also generate the content without bringing up a server either via:
lein run
or via:
clojure -M:build
This gist describes the git branching strategy to setup the git repository with a gh-pages
branch.
- Write a new post
cd williamgrimes.github.io
git branch # verify branch is cryogen
lein serve
echo {:title \"\"\n :layout :post\n :toc false\n :tags [\"\" \"\"]}\n\n# Title > content/md/posts/yyyy-mm-dd-post-title.md
# Start writing
- Push the post to cryogen branch
git add content/md/posts/yyyy-mm-dd-post-title.md
git push -u origin cryogen
- Push the web-page to
gh-pages
cd public
git branch # verify it is gh-pages
git add *
git commit -m "<commit message>"
git push -u origin gh-pages