Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CleanSlate: Pull articles from a blog onto the same site's homepage.
<r:blog id="1234"> <!-- Change this ID to your blog_index page's ID -->
<r:articles limit="5">
<r:if_articles>
<ul>
<r:each>
<li><a href="<r:article:path />"><r:article:name /></a>
<r:select_html css_selector="p" limit="2">
<r:article:content name="article-body" />
</r:select_html></li>
</r:each>
</ul>
</r:if_articles>
</r:articles>
</r:blog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.