Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.21 KB

Eleventy_configuration.md

File metadata and controls

36 lines (29 loc) · 1.21 KB

Eleventy Configuration for the Project Website

project.com is run as a static site with Eleventy (11ty).

Configuration

Example adding node_module libraries:

eleventyConfig.addPassthroughCopy({
  './node_modules/prismjs/themes/prism-okaidia.css': '/css/prism-okaidia.css'
})

Example return object:

{
  dir: {
    // includes: '_includes',
    // layouts: '_includes/layouts'
  },
  // If your site deploys to a subdirectory, change `pathPrefix`.
  // Read more: https://www.11ty.dev/docs/config/#deploy-to-a-subdirectory-with-a-path-prefix

  // When paired with the HTML <base> plugin https://www.11ty.dev/docs/plugins/html-base/
  // it will transform any absolute URLs in your HTML to include this
  // folder name and does **not** affect where things go in the output folder.
  pathPrefix: '/'
}

Feature support

YAML data files

The default data files are in JSON format. YAML files have features like comments. This support is provided with js-yaml through an Eleventy data extension. See https://www.11ty.dev/docs/data-custom/.

SASS

The app uses the SASS CLI to build SCSS to CSS files.