Loading

We have three separate blog pages. How to incorporate all three on the home page?

UPDATE: I have determined the answer to the first half of the question. Will document in comments, and will create a separate question for the randomizer issue.

----

For the blog whose slug is "blog" I'm successful with theming like this:


But what if we have a second blog whose slug is "recipes?" How do we pull most recent posts from there? (I also want to randomize the selected blog posts.) 

So, seeking assistance on both fronts: accessing most_recent_blog_posts for multiple blogs, and randomizing their display (which I imagine will be done with jquery.)

How would you tag this suggestion?
Do you like this suggestion?

Showing 5 reactions


Noah Bornstein tagged this with Helpful 2012-05-15 07:47:25 -0700
Karen Oh tagged this with Not Helpful 2011-12-30 07:12:56 -0800
Marjorie Roswell commented 2011-12-24 10:57:23 -0800 · Flag
Note: The HTML tags didn’t come through in the comments. The two subpage tags were surrounded by divs. And of course, the first subpage code should have another “%” at the beginning.
Marjorie Roswell commented 2011-12-24 10:42:00 -0800 · Flag
This project requires editing 2 files, and creating 2 more.

- edit the custom template for the ‘home’ page.
- create _blog_latest.html
- create _recipes_latest.html
- edit theme.scss

The key that determines which blog items are called is the { % subpage } tag. So… the custom home template calls something like this:

{ subpage “blog” with “blog_latest” %}


{% subpage “recipes” with “recipes_latest” %}


Use the theme.scss file to float the .home_1 column to the left.
(I’ll post a separate question regarding randomized content.)