jekyll/site/_docs/static_files.md

1.0 KiB

layout title permalink
docs Static Files /docs/static-files/

In addition to renderable and convertible content, we also have static files.

A static file is a file that does not contain any YAML front matter. These include images, PDFs, and other un-rendered content.

They're accessible in Liquid via site.static_files and contain the following metadata:

Variable Description

file.path

    The relative path to the file.

  </p></td>
</tr>
<tr>
  <td><p><code>file.modified_time</code></p></td>
  <td><p>

    The `Time` the file was last modified.

  </p></td>
</tr>
<tr>
  <td><p><code>file.extname</code></p></td>
  <td><p>

    The extension name for the file, e.g.
    <code>.jpg</code> for <code>image.jpg</code>

  </p></td>
</tr>