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?
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.
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.)
- 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.)