fun-lang.xyz/_plugins/myFilters.rb

12 lines
256 B
Ruby
Raw Permalink Normal View History

2025-10-08 02:42:14 +02:00
# https://stackoverflow.com/questions/14978474/how-to-show-the-modification-date-of-a-file-in-jekyll
module Jekyll
module MyFilters
def file_date(input)
File.mtime(input)
end
end
end
Liquid::Template.register_filter(Jekyll::MyFilters)