{"id":15105545,"url":"https://github.com/jgarber623/eleventy-plugin-liquid","last_synced_at":"2026-01-18T01:36:20.021Z","repository":{"id":224454383,"uuid":"763299041","full_name":"jgarber623/eleventy-plugin-liquid","owner":"jgarber623","description":"An Eleventy plugin for configuring the LiquidJS template language.","archived":false,"fork":false,"pushed_at":"2024-02-26T05:13:21.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-26T17:22:26.774Z","etag":null,"topics":["11ty","11ty-plugin","eleventy","eleventy-plugin","liquidjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@jgarber/eleventy-plugin-liquid","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgarber623.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-26T02:52:33.000Z","updated_at":"2024-06-03T21:43:06.075Z","dependencies_parsed_at":null,"dependency_job_id":"be456676-760b-446c-b6bb-397308ac5992","html_url":"https://github.com/jgarber623/eleventy-plugin-liquid","commit_stats":null,"previous_names":["jgarber623/eleventy-plugin-liquid"],"tags_count":4,"template":false,"template_full_name":"jgarber623/eleventy-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Feleventy-plugin-liquid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Feleventy-plugin-liquid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Feleventy-plugin-liquid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Feleventy-plugin-liquid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgarber623","download_url":"https://codeload.github.com/jgarber623/eleventy-plugin-liquid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339133,"owners_count":20923009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin","liquidjs"],"created_at":"2024-09-25T20:40:50.556Z","updated_at":"2025-04-05T12:43:12.800Z","avatar_url":"https://github.com/jgarber623.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eleventy-plugin-liquid\n\n**An [Eleventy](https://www.11ty.dev) plugin for configuring the [LiquidJS](https://liquidjs.com) template language.**\n\n[![npm](https://img.shields.io/npm/v/@jgarber/eleventy-plugin-liquid.svg?logo=npm\u0026style=for-the-badge)](https://www.npmjs.com/package/@jgarber/eleventy-plugin-liquid)\n[![Downloads](https://img.shields.io/npm/dt/@jgarber/eleventy-plugin-liquid.svg?logo=npm\u0026style=for-the-badge)](https://www.npmjs.com/package/@jgarber/eleventy-plugin-liquid)\n[![Build](https://img.shields.io/github/actions/workflow/status/jgarber623/eleventy-plugin-liquid/ci.yml?branch=main\u0026logo=github\u0026style=for-the-badge)](https://github.com/jgarber623/eleventy-plugin-liquid/actions/workflows/ci.yml)\n\n## Usage\n\nFirst, add the plugin as [a development dependency](https://docs.npmjs.com/cli/configuring-npm/package-json#devdependencies) to your project's `package.json` file:\n\n```sh\nnpm install --save-dev @jgarber/eleventy-plugin-liquid\n```\n\nNext, add the plugin to your project's [Eleventy configuration file](https://www.11ty.dev/docs/config#default-filenames) (e.g. `eleventy.config.js`):\n\n```js\nimport eleventyPluginLiquid from \"@jgarber/eleventy-plugin-liquid\";\n\nexport default async function(eleventyConfig) {\n  eleventyConfig.addPlugin(eleventyPluginLiquid);\n}\n```\n\nWith no additional configuration, eleventy-plugin-liquid will configure the LiquidJS template language using the options listed below.\n\n## Options\n\neleventy-plugin-liquid sets the following configuration options:\n\n| Name                      | Default                     |\n|:--------------------------|:----------------------------|\n| `dateFormat`              | `\"%Y-%m-%dT%H:%M:%S.%L%:z\"` |\n| `jsTruthy`                | `true`                      |\n| `orderedFilterParameters` | `true`                      |\n| `timezoneOffset`          | `0`                         |\n\nFrom v2.0.0, this package exports these options as `defaultLiquidOptions`.\n\nSee [LiquidJS' Options documentation](https://liquidjs.com/tutorials/options.html) for a full, up-to-date list of configuration options. [Eleventy's LiquidJS template language documentation](https://www.11ty.dev/docs/languages/liquid/) also has several important notes regarding Eleventy's default configuration.\n\n```js\nimport eleventyPluginLiquid from \"@jgarber/eleventy-plugin-liquid\";\n\nexport default function(eleventyConfig) {\n  eleventyConfig.addPlugin(eleventyPluginLiquid, {\n    globals: {\n      dates: {\n        display: \"%A, %B %e\u003csup\u003e%q\u003c/sup\u003e, %Y\",\n        time: \"%l:%M %p\",\n      },\n    },\n    jsTruthy: false\n  });\n};\n```\n\n\u003e [!TIP]\n\u003e As shown above, a common configuration option you may want to set is arbitrary data (like `dates`) in [the `globals` object](https://liquidjs.com/tutorials/options.html#globals). The keys in the `dates` object may be used to format dates and times in Liquid templates. For example, `{{ page.date | date: dates.time }}`. See [the LiquidJS `date` filter documentation](https://liquidjs.com/filters/date.html) for more.\n\n## Acknowledgments\n\nFirst and foremost, eleventy-plugin-liquid wouldn't be possible without [Zach Leatherman](https://www.zachleat.com)'s incredible work creating Eleventy and his stewardship of its community.\n\neleventy-plugin-liquid is written and maintained by [Jason Garber](https://sixtwothree.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgarber623%2Feleventy-plugin-liquid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgarber623%2Feleventy-plugin-liquid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgarber623%2Feleventy-plugin-liquid/lists"}