{"id":15016621,"url":"https://github.com/tigersway/eleventy-plugin-ancestry","last_synced_at":"2025-07-23T20:04:59.440Z","repository":{"id":44583580,"uuid":"255260670","full_name":"TigersWay/eleventy-plugin-ancestry","owner":"TigersWay","description":"A plugin for creating a real hierarchical navigation, following folders and documents, in Eleventy projects.","archived":false,"fork":false,"pushed_at":"2022-02-07T01:35:52.000Z","size":43,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T07:20:11.122Z","etag":null,"topics":["11ty","collections","eleventy","eleventy-plugin","tree"],"latest_commit_sha":null,"homepage":"","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/TigersWay.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}},"created_at":"2020-04-13T07:32:06.000Z","updated_at":"2024-05-21T07:47:35.000Z","dependencies_parsed_at":"2022-08-12T11:20:42.374Z","dependency_job_id":null,"html_url":"https://github.com/TigersWay/eleventy-plugin-ancestry","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TigersWay%2Feleventy-plugin-ancestry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TigersWay%2Feleventy-plugin-ancestry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TigersWay%2Feleventy-plugin-ancestry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TigersWay%2Feleventy-plugin-ancestry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TigersWay","download_url":"https://codeload.github.com/TigersWay/eleventy-plugin-ancestry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219847946,"owners_count":16556340,"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","collections","eleventy","eleventy-plugin","tree"],"created_at":"2024-09-24T19:49:09.302Z","updated_at":"2024-10-14T07:20:24.912Z","avatar_url":"https://github.com/TigersWay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tigersway/eleventy-plugin-ancestry  ![GitHub last commit](https://img.shields.io/github/last-commit/tigersway/eleventy-plugin-ancestry?style=flat-square) ![GitHub issues](https://img.shields.io/github/issues/tigersway/eleventy-plugin-ancestry?style=flat-square)\n\nA plugin for creating a real hierarchical navigation, following folders and documents, in Eleventy projects.\n\n## Install  [![npm](https://img.shields.io/npm/v/@tigersway/eleventy-plugin-ancestry?style=flat-square)](https://www.npmjs.com/package/@tigersway/eleventy-plugin-ancestry)\n\n```sh\nnpm install @tigersway/eleventy-plugin-ancestry\n```\n\nOpen up your Eleventy config file (probably `.eleventy.js`) and use `addPlugin`:\n\n```js\nconst pluginAncestry = require(\"@tigersway/eleventy-plugin-ancestry\");\nmodule.exports = function(eleventyConfig) {\n  eleventyConfig.addPlugin(pluginAncestry);\n};\n```\n\n## Usage\n\nSee `sample/index.md` \u0026 `sample/_includes/base.njk` for examples how to access children/parent.\n\n### Supplied filters\n\n- `find`: Gives access to one - if it exists - `collections.all` element.\n- `children`: Gives access to the folder or subfolders `collections.all` elements.\n- `sorted`: Allows to sort any collection with a deep property.\n\n- `ancestors`(v0.5): Gives access to the parents/ancestors of the elements\n\n### Notes\n\n- As of today, the use of `_index` (to allow easier search of parent) is not included in Eleventy [#1057](https://github.com/11ty/eleventy/issues/1057) \u0026 [#774](https://github.com/11ty/eleventy/issues/774).\u003cbr\u003e\nA permalink rewrite in root directory data file imposes `eleventyComputed` in `@11ty/eleventy@0.11.0`!\n\n## CHANGELOG\n\n**v1.0.3**\n - Eleventy peer dependency corrected\n\n**v1.0.2**\n - Chaining ancestors\n\n**v1.0.1**\n - `permalink:false \u0026\u0026 eleventyExcludeFromCollections: true` are now possible\n - Eleventy now peerDependency\n\n**v0.5.0**\n - ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigersway%2Feleventy-plugin-ancestry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftigersway%2Feleventy-plugin-ancestry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigersway%2Feleventy-plugin-ancestry/lists"}