Created
December 30, 2013 15:04
-
-
Save DeskWOW/8183108 to your computer and use it in GitHub Desktop.
How to feature articles by article ID for support centers with its content segmented by topic description.
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
{% capture featured_force_article %}1227039,1227386{% endcapture %} | |
{% for topic in site.topics %} | |
{% if topic.desc == "force" or topic.desc == "all" %} | |
{% for article in topic.articles %} | |
{% capture current_article_id %}{{ article.id }}{% endcapture %} | |
{% if featured_force_article contains current_article_id %} | |
<li><a href="{{ article.public_url }}">{{ article.subject_plain }}</a></li> | |
{% endif %} | |
{% endfor %} | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment