Skip to content

Instantly share code, notes, and snippets.

@wvuwebgist
Created March 19, 2018 15:36
Show Gist options
  • Save wvuwebgist/79d650a81d6422e01165ff74de3aa2be to your computer and use it in GitHub Desktop.
Save wvuwebgist/79d650a81d6422e01165ff74de3aa2be to your computer and use it in GitHub Desktop.
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