Created
October 28, 2013 14:04
-
-
Save vkrmbhaskaran/7197334 to your computer and use it in GitHub Desktop.
Sample sidebar code to display recent 5 articles in a Freshtheme
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
<!-- sample Liquid template to display recent 5 articles across the entire helpdesk --> | |
<section class="sidebar content rounded-6"> | |
<div class="cs-g-c"> | |
<section class="article-list"> | |
<h3 class="list-lead">Latest articles in {{ portal.name }}</h3> | |
{% for article in portal.recent_articles limit: 5 %} | |
<a href="article.url">{{ article.title }}</a> | |
<br /> | |
{% endfor %} | |
</section> | |
</div> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment