{"id":16773908,"url":"https://github.com/wayou/hexo-image-caption","last_synced_at":"2025-03-21T23:34:31.980Z","repository":{"id":57263500,"uuid":"56957371","full_name":"wayou/hexo-image-caption","owner":"wayou","description":"add caption for images within posts","archived":false,"fork":false,"pushed_at":"2018-11-18T23:45:17.000Z","size":4,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T06:47:23.152Z","etag":null,"topics":["caption","hexo","image","plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wayou.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":"2016-04-24T06:21:51.000Z","updated_at":"2024-03-04T06:54:52.000Z","dependencies_parsed_at":"2022-08-25T02:51:37.218Z","dependency_job_id":null,"html_url":"https://github.com/wayou/hexo-image-caption","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/wayou%2Fhexo-image-caption","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayou%2Fhexo-image-caption/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayou%2Fhexo-image-caption/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayou%2Fhexo-image-caption/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayou","download_url":"https://codeload.github.com/wayou/hexo-image-caption/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820635,"owners_count":16886222,"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":["caption","hexo","image","plugin"],"created_at":"2024-10-13T06:47:23.223Z","updated_at":"2024-10-28T11:17:00.787Z","avatar_url":"https://github.com/wayou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-image-caption\n\nAuto adding caption for images with `alt` attribute.\n\n[![npm package](https://img.shields.io/npm/v/hexo-image-caption.svg)](https://www.npmjs.com/package/hexo-image-caption)\n[![npm package](https://img.shields.io/npm/dm/hexo-image-caption.svg)](https://www.npmjs.com/package/hexo-image-caption)\n\n\n## Installation\n\n```\nnpm install --save hexo-image-caption\n```\n\n## Usage\nadding following section to your hexo site `_config.yml` file to enable and config plugin.\n```yml\n# add caption for iamges\nimage_caption:\n  enable: true #false to disable\n  class_name: #if you wanna customize the style for the caption,you can assign a class name, default is 'image-caption'\n```\n\n## How it works\n\nThis extension takes the `alt` attribe as the cation for images.\n\nFor example:\n\n```md\n![description](xxxx.jpg)\n```\nthe result will be:\n\n```html\n\u003cimg src=\"xxxx.jpg\" alt=\"description\"\u003e\n\u003cspan class=\"image-caption\"\u003edescription\u003c/span\u003e\n```\n\n## Credits\n[wayou](https://github.com/wayou/)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayou%2Fhexo-image-caption","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayou%2Fhexo-image-caption","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayou%2Fhexo-image-caption/lists"}