{"id":43558664,"url":"https://github.com/hexojs/hexo-generator-alias","last_synced_at":"2026-02-03T20:49:11.841Z","repository":{"id":15020529,"uuid":"17746237","full_name":"hexojs/hexo-generator-alias","owner":"hexojs","description":"Generate alias pages for redirecting to posts, pages or URL","archived":false,"fork":false,"pushed_at":"2024-07-15T20:38:00.000Z","size":53,"stargazers_count":54,"open_issues_count":5,"forks_count":12,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-18T01:56:28.778Z","etag":null,"topics":["hexo","hexo-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"thoughtbot/Markoff","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexojs.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":"2014-03-14T12:59:45.000Z","updated_at":"2025-07-22T04:06:55.000Z","dependencies_parsed_at":"2023-01-13T18:13:31.789Z","dependency_job_id":"e2ea5708-d5f1-4207-a082-05186e8bf0c3","html_url":"https://github.com/hexojs/hexo-generator-alias","commit_stats":{"total_commits":50,"total_committers":9,"mean_commits":5.555555555555555,"dds":0.54,"last_synced_commit":"89af3c5fd4f65b1edf7510855cf29d63a266e900"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hexojs/hexo-generator-alias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-alias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-alias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-alias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-alias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexojs","download_url":"https://codeload.github.com/hexojs/hexo-generator-alias/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-alias/sbom","scorecard":{"id":462922,"data":{"date":"2025-08-11","repo":{"name":"github.com/hexojs/hexo-generator-alias","commit":"89af3c5fd4f65b1edf7510855cf29d63a266e900"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tester.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/hexojs/hexo-generator-alias/tester.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tester.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/hexojs/hexo-generator-alias/tester.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tester.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/hexojs/hexo-generator-alias/tester.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/tester.yml:14","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tester.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T11:38:46.564Z","repository_id":15020529,"created_at":"2025-08-19T11:38:46.564Z","updated_at":"2025-08-19T11:38:46.564Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29056926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"last_error":"SSL_read: 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":["hexo","hexo-plugin"],"created_at":"2026-02-03T20:49:11.167Z","updated_at":"2026-02-03T20:49:11.831Z","avatar_url":"https://github.com/hexojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-generator-alias\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/hexojs/hexo-generator-alias/tester.yml?branch=master\u0026label=test)](https://github.com/hexojs/hexo-generator-alias/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-generator-alias.svg)](https://www.npmjs.com/package/hexo-generator-alias)\n[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-generator-alias.svg)](https://coveralls.io/r/hexojs/hexo-generator-alias?branch=master)\n\nGenerates alias pages for redirecting to posts, pages or URL.\n\n## Install\n\n``` bash\n$ npm install hexo-generator-alias --save\n```\n\n- Hexo 3 \u0026 4: \u003e= 1.0\n- Hexo 2: 0.1.x\n\n## Usage\n\nYou can specify aliases in `_config.yml`:\n\n``` yaml\nalias:\n  api/index.html: api/classes/Hexo.html\n  plugins/index.html: https://github.com/tommy351/hexo/wiki/Plugins\n```\n\nIn the above example, when you access http://example.com/api/, you will be redirected to http://example.com/api/classes/Hexo.html\n\nYou could also configure it in your post and page files:\n\n``` diff\nsource/cv/index.md\n---\ntitle: some title\ndate: some date\n+ alias: about/index.html\n\n+ alias:\n+ - foo/index.html\n+ - bar/index.html\n---\n```\n\nIn the above example, when you access http://example.com/about/, you will be redirected to http://example.com/cv/\n\nYou could also configure multiple aliases. So in the second example,\n\n- http://example.com/foo/ ⇒ http://example.com/cv/\n- http://example.com/bar/ ⇒ http://example.com/cv/\n\nAlias must ends with `.html`, examples of valid value include:\n\n- \"about/index.html\" (alias is http://example.com/about/)\n- \"foo/bar.html\" (alias is http://example.com/foo/bar)\n\n## Redirect\n\nAvailable in post and page.\n\n``` diff\nsource/cv/index.md\n---\ntitle: some title\ndate: some date\n+ redirect: http://target-site.com/\n---\n```\n\nhttp://example.com/cv/ ⇒ http://target-site.com/\n\n``` diff\nsource/_posts/foo.md\n---\ntitle: foo\ndate: 2020-01-02 00:00:00\n+ redirect: /2020/03/04/bar/\n---\n```\n\nhttp://example.com/2020/01/02/foo/ ⇒ http://example.com/2020/03/04/bar/\n\n### Redirect to a post\n\nIf you specify a value without any slash, the article will be redirected to a post with that filename.\n\nFor example, there is an existing post \"source/_posts/foo-post.md\" that is available at http://example.com/2020/01/02/foo-post/,\n\n``` diff\nsource/baz-page.md\n---\ntitle: baz\n+ redirect: foo-post\n---\n```\n\nhttp://example.com/baz-page ⇒ http://example.com/2020/01/02/foo-post/\n\n_If a post could not be located (due to incorrect value), the article will be redirected to http://example.com/foo-post_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-generator-alias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexojs%2Fhexo-generator-alias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-generator-alias/lists"}