jekyll-file-size

jekyll-file-size

Simple Liquid filter that returns the size of a file in bytes.

Jekyll file size

A simple Liquid filter to get the size of a given file in bytes.

Useful for generating valid podcast feeds.

Usage:

{{ './foo.txt' | file_size }}
{{ relative_path_var | prepend: '.' | file_size }}