{"id":16922757,"url":"https://github.com/unasuke/middleman-img_loading_attribute","last_synced_at":"2025-04-11T16:53:17.252Z","repository":{"id":56620493,"uuid":"220190480","full_name":"unasuke/middleman-img_loading_attribute","owner":"unasuke","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-28T14:18:19.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T13:01:50.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/middleman-img_loading_attribute","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/unasuke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-07T08:45:32.000Z","updated_at":"2021-10-28T14:18:21.000Z","dependencies_parsed_at":"2022-08-15T22:01:13.754Z","dependency_job_id":null,"html_url":"https://github.com/unasuke/middleman-img_loading_attribute","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unasuke%2Fmiddleman-img_loading_attribute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unasuke%2Fmiddleman-img_loading_attribute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unasuke%2Fmiddleman-img_loading_attribute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unasuke%2Fmiddleman-img_loading_attribute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unasuke","download_url":"https://codeload.github.com/unasuke/middleman-img_loading_attribute/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248443549,"owners_count":21104446,"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-13T19:56:43.999Z","updated_at":"2025-04-11T16:53:17.228Z","avatar_url":"https://github.com/unasuke.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Middleman::ImgLoadingAttribute\n[![Build Status on GitHub Actions](https://github.com/unasuke/middleman-img_loading_attribute/workflows/ubuntu/badge.svg)](https://github.com/unasuke/middleman-img_loading_attribute/actions)\n[![Build Status on GitHub Actions](https://github.com/unasuke/middleman-img_loading_attribute/workflows/windows/badge.svg)](https://github.com/unasuke/middleman-img_loading_attribute/actions)\n[![Build status](https://ci.appveyor.com/api/projects/status/yq5i4m3lcoyko2hs/branch/master?svg=true)](https://ci.appveyor.com/project/unasuke/middleman-img-loading-attribute/branch/master)\n[![CircleCI](https://circleci.com/gh/unasuke/middleman-img_loading_attribute/tree/master.svg?style=svg)](https://circleci.com/gh/unasuke/middleman-img_loading_attribute/tree/master)\n![RubyGem version](https://badgen.net/rubygems/v/middleman-img_loading_attribute)\n![MIT License](https://badgen.net/github/license/unasuke/middleman-img_loading_attribute)\n\nSpecify \"loading\" attribute value to generated HTML from Middleman\nYou can choose \"lazy\", \"auto\", and \"eager\" to loading attribite by configuration.\n\n## Installation\nAdd this line to your Middleman project's Gemfile:\n\n```ruby\ngem 'middleman-img_loading_attribute'\n```\n\nAnd then execute:\n\n```shell\n$ bundle\n```\n\n## Usage\nActivate `img_loading_attribute` in your `config.rb`.\n\n### loading=\"lazy\"\n```ruby\nactivate :img_loading_attribute do |c|\n  c.loading = 'lazy'\nend\n```\n\n### loading=\"auto\"\n```ruby\nactivate :img_loading_attribute do |c|\n  c.loading = 'auto'\nend\n\n# If no configuration specified, choose \"auto\" as default value\nactivate :img_loading_attribute\n```\n\n### loading=\"eager\"\n```ruby\nactivate :img_loading_attribute do |c|\n  c.loading = 'eager'\nend\n```\n\n## Development\n\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in gemspec, 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/unasuke/middleman-img_loading_attribute. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Middleman::ImgLoadingAttribute project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/unasuke/middleman-img_loading_attribute/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funasuke%2Fmiddleman-img_loading_attribute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funasuke%2Fmiddleman-img_loading_attribute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funasuke%2Fmiddleman-img_loading_attribute/lists"}