Fork me on GitHub
#cryogen
<
2021-01-18
>
zackteo14:01:26

Hello! Am trying to deploy cryogen site with github pages. This is my repo https://github.com/zackteo/zackteo.github.io Am just using the default lein template w some changes to config.edn and removal of content/md/posts/2020-12-03-docs.md Could anyone explain why there the site is not deploying? It seems based on the activity log it has been deployed?

zackteo15:01:15

Okay the hosting seems to work. But it I'm not sure whether cryogen is doing what it is supposed to do at this point :thinking_face:

dorab18:01:32

In your current example, it seems like you are entirely bypassing cryogen. Your whole website is just based on your index.html you have in your repo. What you want to do is to have your cryogen repo (say zackteo/myblog ) that contains the md or asciidoc files that are your blog pages. Then you run lein run. That will create your whole blog under the public folder in your myblog repo. Then you copy over the files under the public folder in your myblog repo over to your zackteo/zackteo.github.io repo and check them in on the master branch of that repo. You now have a functioning blog at https://zackteo.github.io. In case it is not clear, there are TWO repos - one to hold the source files to your blog (`zackteo/myblog`) and the other to host the blog on github (`zackteo/zackteo.github.io`). You might find the following helpful http://cryogenweb.org/docs/deploying-to-github-pages.html (in particular, the sections on "Setting up User and Organization Pages" and Deploying to GitHub Pages". This is assuming you want a personal blog and not a project blog.

❤️ 3
dorab18:01:06

Another, slightly more complicated, alternative is to add a (say) cryogen branch to the zackteo/zackteo.github.io repo to contain your blog source. That way, you have just one repo, but two branches - cryogen to contain the blog pages sources, and master to contain the cryogen-generated blog files hosted at github pages.

👍 3
seancorfield18:01:21

That's what I do for http://corfield.org (http://seancorfield.github.io) -- I have a cryogen source branch (with public etc .gitignore'd) and do lein run to populate the public folder which is where the main branch of the repo is.

seancorfield18:01:03

So my process is: edit files in my folder which is the on cryogen branch; preview/edit cycle until I'm happy; add/commit/push those source changes (cryogen branch); lein run; then add/commit/push those generated changes (master branch), which updates http://corfield.org a few minutes later.