{"id":16695141,"url":"https://github.com/uiolee/hexo-absolute","last_synced_at":"2025-04-10T01:43:00.479Z","repository":{"id":103508419,"uuid":"499983454","full_name":"uiolee/hexo-absolute","owner":"uiolee","description":"convert relative path to absolute URL for hexo","archived":false,"fork":false,"pushed_at":"2025-03-10T16:26:23.000Z","size":290,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T03:23:55.258Z","etag":null,"topics":["filter","hexo","hexo-plugin","plugin","url"],"latest_commit_sha":null,"homepage":"https://npmjs.com/hexo-absolute","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uiolee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-05T02:40:20.000Z","updated_at":"2024-08-17T11:12:15.000Z","dependencies_parsed_at":"2024-05-18T04:27:30.970Z","dependency_job_id":"ed4119d0-4fde-4e9d-a098-5c275a2a7721","html_url":"https://github.com/uiolee/hexo-absolute","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"53e1aba7f0ce80a639f27163917ff8d37808eb43"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiolee%2Fhexo-absolute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiolee%2Fhexo-absolute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiolee%2Fhexo-absolute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiolee%2Fhexo-absolute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiolee","download_url":"https://codeload.github.com/uiolee/hexo-absolute/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142299,"owners_count":21054617,"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":["filter","hexo","hexo-plugin","plugin","url"],"created_at":"2024-10-12T17:05:36.062Z","updated_at":"2025-04-10T01:43:00.451Z","avatar_url":"https://github.com/uiolee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-absolute\n\n[![GitHub Tag](https://img.shields.io/github/v/tag/uiolee/hexo-absolute?logo=github)](https://github.com/uiolee/hexo-absolute/tags)\n[![GitHub Release](https://img.shields.io/github/v/release/uiolee/hexo-absolute?logo=github)](https://github.com/uiolee/hexo-absolute/releases)\n[![GitHub commits since latest release](https://img.shields.io/github/commits-since/uiolee/hexo-absolute/latest?include_prereleases\u0026sort=semver\u0026logo=github)](https://github.com/uiolee/hexo-absolute/compare/...main)\n[![GitHub top language](https://img.shields.io/github/languages/top/uiolee/hexo-absolute?logo=github)](#hexo-absolute)\n[![Coverage Status](https://coveralls.io/repos/github/uiolee/hexo-absolute/badge.svg?branch=main)](https://coveralls.io/github/uiolee/hexo-absolute?branch=main)\n[![CI](https://github.com/uiolee/hexo-absolute/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/uiolee/hexo-absolute/actions/workflows/ci.yml)\n[![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/uiolee/hexo-absolute?logo=librariesdotio)](https://libraries.io/github/uiolee/hexo-absolute#dependencies)\n\nConvert relative path to absolute URL for [hexo](https://github.com/hexojs/hexo)\n\nOnly run when `hexo generate` or `deploy`, won't run when `hexo server`.\n\n## Install\n\n[![NPM Version](https://img.shields.io/npm/v/hexo-absolute?logo=npm)](https://www.npmjs.com/package/hexo-absolute)\n[![node-lts](https://img.shields.io/node/v-lts/hexo-absolute?logo=nodedotjs)](https://nodejs.org/)\n[![NPM License](https://img.shields.io/npm/l/hexo-absolute)](./LICENSE)\n[![NPM Downloads](https://img.shields.io/npm/dm/hexo-absolute?logo=npm)](#hexo-absolute)\n[![NPM Downloads](https://img.shields.io/npm/dt/hexo-absolute?logo=npm)](#hexo-absolute)\n[![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/hexo-absolute?logo=librariesdotio)](https://libraries.io/npm/hexo-absolute/tree)\n\n```bash\npnpm add hexo-absolute\n\n# npm i hexo-absolute\n```\n\n## Configuration\n\n### Website Configuration\n\n```yaml\n# If your website is in a subdirectory (such as http://example.org/blog) set url to http://example.org/blog and set root to /blog/.\nurl: http://example.org/blog\n```\n\n[**Hexo/Docs/Configuration#URL**](https://hexo.io/docs/configuration#URL)\n\n### Plugin Configuration\n\n```yaml\nabsolute:\n  enable: true\n  tagName: [\"a\", \"link\", \"img\", \"script\"]\n  attribute: [\"href\", \"src\"]\n  priority: 20\n```\n\n- `enable`\n\n  boolean, set `false` to disable this plugin.\n\n- `tagName`\n\n  html tag name\n\n- `attribute`\n\n  html tag attribute\n\n- `priority`\n\n  define the priority of this plugin.\n\n  \u003e [**Hexo/API/Filter#Synopsis:**\n  \u003e You can define the priority. Lower priority means that it will be executed first. The default priority is 10.](https://hexo.io/api/filter.html#Synopsis)\n\n## Example (default config)\n\n### before\n\n```html\n\u003ca href=\"#top\"\u003etop\u003c/a\u003e\n\u003clink rel=\"stylesheet\" href=\"/css/style.css\" /\u003e\n\u003cimg src=\"/images/hexo.png\" /\u003e\n\u003cscript src=\"/js/jquery-2.2.4.min.js\"\u003e\u003c/script\u003e\n```\n\n### after\n\n```html\n\u003ca href=\"https://example.org/#top\"\u003etop\u003c/a\u003e\n\u003clink rel=\"stylesheet\" href=\"https://example.org/css/style.css\" /\u003e\n\u003cimg src=\"https://example.org/images/hexo.png\" /\u003e\n\u003cscript src=\"https://example.org/js/jquery-2.2.4.min.js\"\u003e\u003c/script\u003e\n```\n\n## Uninstall\n\n```bash\npnpm rm hexo-absolute\n\n# npm uninstall hexo-absolute\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiolee%2Fhexo-absolute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiolee%2Fhexo-absolute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiolee%2Fhexo-absolute/lists"}