Created
March 19, 2018 15:36
-
-
Save wvuwebgist/79d650a81d6422e01165ff74de3aa2be to your computer and use it in GitHub Desktop.
CleanSlate: Pull articles from a blog onto the same site's homepage.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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