Skip to content

Instantly share code, notes, and snippets.

@vkrmbhaskaran
Created October 28, 2013 14:04
Show Gist options
  • Save vkrmbhaskaran/7197334 to your computer and use it in GitHub Desktop.
Save vkrmbhaskaran/7197334 to your computer and use it in GitHub Desktop.
Sample sidebar code to display recent 5 articles in a Freshtheme
<!-- 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