Allow for an optional maximum number of entries to display.

This commit is contained in:
Mario Lang
2014-02-10 17:27:54 +01:00
parent d7cb218e46
commit b35996ca43
2 changed files with 7 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ For example, to track Pelican project activity, the setting would be::
GITHUB_ACTIVITY_FEED = 'https://github.com/getpelican.atom'
If you want to limit the amount of entries to a certain maximum set the
``GITHUB_ACTIVITY_MAX_ENTRIES`` parameter.
GITHUB_ACTIVITY_MAX_ENTRIES = 10
On the template side, you just have to iterate over the ``github_activity``
variable, as in this example::