Skip to content

williamgrimes/williamgrimes.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

williamgrimes.xyz

Personal blogging website built with Cryogen:

http://cryogenweb.org/

Running the Server

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

Writing a new post to github pages

This gist describes the git branching strategy to setup the git repository with a gh-pages branch.

  1. 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
  1. Push the post to cryogen branch
git add content/md/posts/yyyy-mm-dd-post-title.md
git push -u origin cryogen
  1. 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

About

personal webpage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published