{"id":15022955,"url":"https://github.com/workeffortwaste/eleventy-plugin-recent-changes","last_synced_at":"2025-06-10T19:10:00.971Z","repository":{"id":42687656,"uuid":"308600008","full_name":"workeffortwaste/eleventy-plugin-recent-changes","owner":"workeffortwaste","description":"An Eleventy (11ty) plugin that creates a collection containing your recent commit history.","archived":false,"fork":false,"pushed_at":"2022-03-28T13:38:56.000Z","size":7,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T04:43:41.581Z","etag":null,"topics":["11ty","11ty-plugin","eleventy","eleventy-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workeffortwaste.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T10:41:29.000Z","updated_at":"2024-02-29T11:21:01.000Z","dependencies_parsed_at":"2022-09-04T10:31:48.481Z","dependency_job_id":null,"html_url":"https://github.com/workeffortwaste/eleventy-plugin-recent-changes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workeffortwaste%2Feleventy-plugin-recent-changes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workeffortwaste%2Feleventy-plugin-recent-changes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workeffortwaste%2Feleventy-plugin-recent-changes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workeffortwaste%2Feleventy-plugin-recent-changes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workeffortwaste","download_url":"https://codeload.github.com/workeffortwaste/eleventy-plugin-recent-changes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238053514,"owners_count":19408699,"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"],"created_at":"2024-09-24T19:58:34.605Z","updated_at":"2025-02-10T03:31:25.777Z","avatar_url":"https://github.com/workeffortwaste.png","language":"JavaScript","funding_links":["https://ko-fi.com/defaced)*"],"categories":[],"sub_categories":[],"readme":"# eleventy-plugin-recent-changes\n\nAn [Eleventy (11ty)](https://www.11ty.dev/) plugin that creates a collection containing your recent commit history. \n\n*Automatically create a viewable changelog for your project.*\n\n**Like this project? Help support my projects and buy me a coffee via [ko-fi](https://ko-fi.com/defaced)**.\n\n---\n\n## Getting started\n\n### Install the plugin\n\nIn your project directory run:\n\n```sh\n# Using npm\nnpm install eleventy-plugin-recent-changes --save\n```\n\nThen update your project's `.eleventy.js` to include the plugin:\n\n```js\nconst recentChanges = require('eleventy-plugin-recent-changes');\n\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(recentChanges);\n};\n```\n\n### Configure the plugin (optional)\n\nYou can pass an object with configuration options as the second\nparameter:\n\n```js\neleventyConfig.addPlugin(recentChanges, {\n  commits: 20, // The maxmium number of commits to add to the collection, before filtering.\n  filter: 'news', // Filter only commits that include a specific string.\n});\n```\n\n## Using the plugin\n\nThe plugin will create a collection `recentChanges` containing your recent commit history.\n\n### Layout example\n\nNunjucks:\n```\n\u003cul\u003e\n  {%- for commit in collections.recentChanges %}\n        \u003cli\u003e\u003ctime\u003e{{ commit.authorDate }}\u003c/time\u003e {{ commit.subject }}\u003c/li\u003e\n  {%- endfor %}\n\u003c/ul\u003e\n```\n\n### Collection values\n\n| Value | Description  |\n|---|---|\n| authorDate | The date of the commit. |\n| authorName | The name of the author. |\n| subject | The commit message. |\n| hash | The full hash of the commit. |\n| abbrevHash | The abbreviated hash of the commit. |\n\n## Author\nChris Johnson - [defaced.dev](https://defaced.dev) - [@defaced](http://twitter.co.uk/defaced/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkeffortwaste%2Feleventy-plugin-recent-changes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkeffortwaste%2Feleventy-plugin-recent-changes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkeffortwaste%2Feleventy-plugin-recent-changes/lists"}