Forum
Can I add this blog style to a Perch Blog
I have read the docs and watched the video but I am having a hard time converting my html blog into a perch blog: The current blog is https://www.robertbroley.co.uk/blog.html
Post page is https://www.robertbroley.co.uk/what-is-responsive-design.html
I am having some difficulty getting the styling to work: https://www.robertbroley.co.uk/blog/
Any help step by step would be greatly appreciated.
Hello Rob,
the first thing you need to do is edit the template for the list of posts.
The default file should be in perch/addons/apps/perch_blog/templates/blog/post_in_list.html, copy that file to perch/templates/blog.
What I usually do next is copy the html for an individual post below the template. You should then be able to copy the perch tags into the right places in your html. Once you’ve done that you delete the original content of the file (just leaving your html with the Perch tags in it).
As an example here is the post_in_list.html template for my blog:
You can do a similar thing with individual posts using the template post.html
Don’t touch the original template file you copied, only the one in perch/templates/blog.
Thanks for that Nick. I seem to have got it working now with a bit of editing.