mirror of
https://github.com/danbee/danbarber.me
synced 2025-03-04 08:59:10 +00:00
16 lines
359 B
Ruby
16 lines
359 B
Ruby
module Jekyll
|
|
module Filters
|
|
|
|
# Outputs a list of categories as comma-separated <a> links. This is used
|
|
# to output the category list for each post on a category page.
|
|
#
|
|
# +categories+ is the list of categories to format.
|
|
#
|
|
# Returns string
|
|
#
|
|
def category_list(categories)
|
|
categories.sort.join(', ')
|
|
end
|
|
end
|
|
end
|