Wowchemy, Changing from /post to /blog for Posts

If you are using the Wowchemy theme for your blog you will have noticed that it puts blog posts under /post/ by default.

You will see that on this too.

But you will also notice that I override the path structure for each post. Take a look in the address bar of your browser. See, I have /year/month/something-like-the-title.

I do in the /config/_default/config.yaml by adding a post permalink -

permalinks:
  event: '/talk/:slug/'
  tags: '/tag/:slug/'
  categories: '/category/:slug/'
  publication_types: '/publication-type/:slug/'
  post : '/:year/:month/:slug/'

I highlight this because to move from /post to /blog I have to make a change here too, you may not.

To move from /post to /blog

Step 1 (may not be necessary)

In config/_default/config.yaml I change line 6 from post to blog.

permalinks:
  event: '/talk/:slug/'
  tags: '/tag/:slug/'
  categories: '/category/:slug/'
  publication_types: '/publication-type/:slug/'
  blog : '/:year/:month/:slug/'

Step 2

Change the /content/post directory and change it to /content/blog.

Step 3

In /content/home/posts.md, change/add the page_type so it looks like -

content: 
  page_type: blog

Step 4

In /config/_default/params.yaml, find all references to post and replace with blog, if you don’t do this you will lose things like related posts.

That’s it!

Now your posts will be under /blog.

comments powered by Disqus

Related