{"id":16742265,"url":"https://github.com/clemsos/metalsmith-scan-images","last_synced_at":"2025-04-10T13:32:42.080Z","repository":{"id":34331020,"uuid":"38250834","full_name":"clemsos/metalsmith-scan-images","owner":"clemsos","description":"A metalsmith plugin that scan all images in subfolders and add it to metadata.","archived":false,"fork":false,"pushed_at":"2015-09-02T06:53:21.000Z","size":180,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T12:11:30.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/clemsos.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":"2015-06-29T14:05:10.000Z","updated_at":"2023-02-10T22:43:13.000Z","dependencies_parsed_at":"2022-08-29T08:01:48.698Z","dependency_job_id":null,"html_url":"https://github.com/clemsos/metalsmith-scan-images","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fmetalsmith-scan-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fmetalsmith-scan-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fmetalsmith-scan-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clemsos%2Fmetalsmith-scan-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clemsos","download_url":"https://codeload.github.com/clemsos/metalsmith-scan-images/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248223828,"owners_count":21068069,"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":[],"created_at":"2024-10-13T01:23:12.156Z","updated_at":"2025-04-10T13:32:42.037Z","avatar_url":"https://github.com/clemsos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metalsmith Scan Images\n\nA metalsmith plugin to easily create image galleries. \n\nThis plugin will scan all images included in folders following a pattern (ex ```'content/projects/**/*.md'```) and add an array of paths called ```images``` to each post metadata. \n\nSupported extensions : ```\"jpg\", \"svg\", \"png\", \"gif\", \"JPG\", \"SVG\", \"PNG\", \"GIF\"```\n\n## Install\n\n```sh\nnpm install --save metalsmith-scan-images\n```\n\n## API\n\n```js\nvar Metalsmith = require('metalsmith');\nvar images = require(\"metalsmith-scan-images\");\n\nvar metalsmith = new Metalsmith(__dirname)\n  .use(images( 'content/**/**/index.html' ))\n```\n## Use it\n\nA basic example of template for an image gallery\n\n```html\n\u003cdiv id=\"gallery\" class=\"nine columns\"\u003e\n    \u003cul \u003e\n    {{#each images }}\n        \u003cli\u003e\n            \u003cimg src=\"{{this}}\" alt=\"\"\u003e\n        \u003c/li\u003e\n    {{/each}}\n    \u003c/ul\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemsos%2Fmetalsmith-scan-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclemsos%2Fmetalsmith-scan-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclemsos%2Fmetalsmith-scan-images/lists"}