Remove unnecessary self.tags.flatten! in favour of a one-line sol'n.
This commit is contained in:
parent
422a4bd5cd
commit
f7841d1713
|
@ -67,8 +67,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def populate_tags
|
def populate_tags
|
||||||
self.tags = self.data.pluralized_array("tag", "tags")
|
self.tags = self.data.pluralized_array("tag", "tags").flatten
|
||||||
self.tags.flatten!
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Get the full path to the directory containing the post files
|
# Get the full path to the directory containing the post files
|
||||||
|
|
Loading…
Reference in New Issue