startling/cytoplasm — Issue #6: Support blog at domain root instead of domain/blog
Author: jdeibele
Created: 2012-01-27 19:42:40+00:00
State: open

I have an existing blog which I migrated from WordPress to Blogofile and now would like to migrate to Cytoplasm.

My structure is set up with the blog posts at www.foo.com/ instead of www.foo.com/blog/

I've gotten Cytoplasm to work with this by doing the following:

Change _config.py to remove pages

< ("blog", ["_posts", "_build/blog"]),
< ("page", ["_pages", "_build"]),
---
> ("blog", ["_posts", "_build"]),

Change _templates/chronological.mako
diff ~/Dropbox/cytoplasm/test/_templates/chronological.mako chronological.mako
9c9
<

${post.title}

---
>

${post.title}

12c12
< ${post.month}
---
> ${post.month}
16c16
< ${post.year}
---
> ${post.year}
21c21
< ${tag},
---
> ${tag},
23c23
< ${tag}
---
> ${tag}

And that was it. I do lose out on static pages like an "about" but I don't really care about that on a blog. I suppose it's possible to make pages build to /pages.

I did add trailing slashes on tags and month.