Sha256: 3916280c2a984ef1c2c9e46cbd431659510aa96ea66dd9848f834737f0c332b2

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 KB

Contents

---
layout: docs
title: Static Files
permalink: /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:

<div class="mobile-side-scroller">
<table>
  <thead>
    <tr>
      <th>Variable</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><p><code>file.path</code></p></td>
      <td><p>

        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>
  </tbody>
</table>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-docs-3.1.6 site/_docs/static_files.md
jekyll-docs-3.1.5 site/_docs/static_files.md
jekyll-docs-3.1.4 site/_docs/static_files.md
jekyll-docs-3.1.3 site/_docs/static_files.md
jekyll-docs-3.1.2 site/_docs/static_files.md
jekyll-docs-3.0.3 site/_docs/static_files.md