Show blog on main page

11 views
Skip to first unread message

jrock2004

unread,
Jun 2, 2011, 12:08:01 AM6/2/11
to blogofile-discuss
I am trying to look at the blogofile sample and I cannot figure out
what I need to do to get it to show blog posts on the main page.
Thanks.

Andrew Barilla

unread,
Jun 2, 2011, 12:09:21 AM6/2/11
to blogofil...@googlegroups.com
Here's what I use:

<div class="home_block">
<h2>Blog</h2>

<div class="post_body">
<p>You might be here to read some of <a href="${bf.util.site_path_helper(bf.config.blog.path)}">my ramblings</a>.</p>

% for post in bf.config.blog.posts[:5]:
<h3><a href="${post.path}">${post.title}</a></h3>
<div class="post_excerpt">${post.excerpt}</div>
% endfor
</p>
</div>
</div>


--
You received this message because you are subscribed to the Google Groups "blogofile-discuss" group.
To post to this group, send email to blogofil...@googlegroups.com.
To unsubscribe from this group, send email to blogofile-disc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/blogofile-discuss?hl=en.


Ryan McGuire

unread,
Jun 2, 2011, 9:22:15 AM6/2/11
to blogofile-discuss
Andrew's suggestion is a good one, another way is if you want the
chronological feed to show up as your main page you can just set
blog.path = "/" and delete any index.html.mako you have.

jrock2004

unread,
Jun 2, 2011, 12:09:54 PM6/2/11
to blogofile-discuss
But then what file do I edit to style it? Is it still the site.mako?

jrock2004

unread,
Jun 3, 2011, 2:43:56 PM6/3/11
to blogofile-discuss
Thanks, that has gotten me on the right track.



On Jun 2, 12:09 am, Andrew Barilla <and...@exit66.com> wrote:
Reply all
Reply to author
Forward
0 new messages