{"id":15789962,"url":"https://github.com/rukbotto/jekyll-image-data","last_synced_at":"2026-04-29T10:32:56.231Z","repository":{"id":56878637,"uuid":"89532822","full_name":"rukbotto/jekyll-image-data","owner":"rukbotto","description":"Image data for Jekyll posts and pages.","archived":false,"fork":false,"pushed_at":"2018-08-07T01:52:02.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-21T00:11:43.507Z","etag":null,"topics":["jekyll","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/rukbotto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-26T22:39:38.000Z","updated_at":"2024-04-17T18:33:46.000Z","dependencies_parsed_at":"2022-08-20T11:40:31.929Z","dependency_job_id":null,"html_url":"https://github.com/rukbotto/jekyll-image-data","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/rukbotto/jekyll-image-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rukbotto%2Fjekyll-image-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rukbotto%2Fjekyll-image-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rukbotto%2Fjekyll-image-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rukbotto%2Fjekyll-image-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rukbotto","download_url":"https://codeload.github.com/rukbotto/jekyll-image-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rukbotto%2Fjekyll-image-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32421722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jekyll","ruby"],"created_at":"2024-10-04T22:04:20.455Z","updated_at":"2026-04-29T10:32:56.214Z","avatar_url":"https://github.com/rukbotto.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jekyll Image Data\n\n[![Build Status](https://travis-ci.org/rukbotto/jekyll-image-data.svg?branch=master)](https://travis-ci.org/rukbotto/jekyll-image-data)\n\nImage data for Jekyll posts and pages. Crawls Markdown content from posts and pages in search of image data (\"src\" and \"alt\" attributes) and makes it available as a post/page metadata attribute.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"jekyll-image-data\"\n```\n\nAnd then execute:\n\n```sh\n$ bundle\n```\n\nOr install it yourself as:\n\n```sh\n$ gem install jekyll-image-data\n```\n\n## Usage\n\nDefine your images using Markdown format, plain HTML or by including a `.liquid` file:\n\n```markdown\n![Alt text](/image-url)\n\nor\n\n![Alt text][ref]\n[ref]: /image-url\n```\n\n```html\n\u003cimg src=\"http://placehold.it/800x600\" alt=\"Image\"\u003e\n```\n\n```liquid\n{% include image.liquid src=\"http://placehold.it/800x600\" alt=\"Image\" %}\n```\n\nNote that the included file must be named `image.liquid` or `image.html` and must accept at least two parameters: `src` and `alt`.\n\nThis plugin gets executed in the `:posts, :pre_render` and `:pages, :post_init` hooks. After execution, `post.data[\"images\"]` or `page.data[\"images\"]` will hold `alt` and `src` data for all images inside post/page:\n\n```ruby\npost.data[\"images\"] = [\n  { \"alt\" =\u003e \"Alt text\", \"url\" =\u003e \"/media/images/800x600.png\" },\n  { \"alt\" =\u003e \"Alt text\", \"url\" =\u003e \"/media/images/800x600.jpg\" },\n  { \"alt\" =\u003e \"Alt text\", \"url\" =\u003e \"/media/images/800x600.gif\" }\n]\n```\n\n```liquid\n{% for image in page.images %}\n  \u003cimg alt=\"{{ image.alt }}\" src=\"{{ image.url }}\" \u003e\n{% endfor %}\n```\n\n### Excluding images\n\nIf you don't want data from some images to be included in the `post.data[\"images\"]` or `page.data[\"images\"]` variables, you can add the image URL to the `exclude` setting in the `_config.yml` file:\n\n```yaml\nimage_data:\n  exclude: \"/media/images/800x600.png\"\n```\n\nRemember this setting is a regular expression. You can put the complete URL of the images or just part of it. In the above example, data from any image that contains the string `/media/images/800x600.png` in the `src` attribute won't be added to the data variable for any post or page.\n\n## Development\n\nAfter checking out the repo, run `script/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `script/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/rukbotto/jekyll-image-data.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frukbotto%2Fjekyll-image-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frukbotto%2Fjekyll-image-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frukbotto%2Fjekyll-image-data/lists"}