{"id":51400679,"url":"https://github.com/tea3/hexo-generator-amp","last_synced_at":"2026-07-04T06:07:07.344Z","repository":{"id":54391352,"uuid":"54034142","full_name":"tea3/hexo-generator-amp","owner":"tea3","description":"AMP ⚡ HTML (Accelerated Mobile Pages) generator for Hexo.","archived":false,"fork":false,"pushed_at":"2023-11-06T03:24:12.000Z","size":395,"stargazers_count":126,"open_issues_count":6,"forks_count":27,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-03-29T00:54:29.549Z","etag":null,"topics":["amp-html","amphtml-validation","ampify","hexo","static-site-generator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tea3.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":"2016-03-16T13:27:54.000Z","updated_at":"2025-09-17T17:36:45.000Z","dependencies_parsed_at":"2024-06-20T21:49:36.300Z","dependency_job_id":"f5c740a6-518e-439f-916e-958ba794b3bd","html_url":"https://github.com/tea3/hexo-generator-amp","commit_stats":{"total_commits":158,"total_committers":14,"mean_commits":"11.285714285714286","dds":0.5696202531645569,"last_synced_commit":"31f4e6c0c38a502bc52b13bfe0c2631ba4baab65"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tea3/hexo-generator-amp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tea3%2Fhexo-generator-amp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tea3%2Fhexo-generator-amp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tea3%2Fhexo-generator-amp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tea3%2Fhexo-generator-amp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tea3","download_url":"https://codeload.github.com/tea3/hexo-generator-amp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tea3%2Fhexo-generator-amp/sbom","scorecard":{"id":871284,"data":{"date":"2025-08-11","repo":{"name":"github.com/tea3/hexo-generator-amp","commit":"31f4e6c0c38a502bc52b13bfe0c2631ba4baab65"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Code-Review","score":3,"reason":"Found 7/21 approved changesets -- score normalized to 3","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":"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":"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":"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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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-24T04:18:01.727Z","repository_id":54391352,"created_at":"2025-08-24T04:18:01.727Z","updated_at":"2025-08-24T04:18:01.727Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35111476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["amp-html","amphtml-validation","ampify","hexo","static-site-generator"],"created_at":"2026-07-04T06:07:06.544Z","updated_at":"2026-07-04T06:07:07.337Z","avatar_url":"https://github.com/tea3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hexo-generator-amp\n\nAMP ⚡ HTML (Accelerated Mobile Pages Project HTML) generator for [Hexo](https://github.com/hexojs/hexo).\n\nDEMO:　[HTML](https://photo-tea.com/p/hexo-markdown-notation/) | [AMP HTML](https://photo-tea.com/p/hexo-markdown-notation/amp/#development=1)\n\n![Screenshot](src/img/hexo2amp.png)\n\n## Overview\n\nYou able to generate an AMP site with almost little effort.\n\n- Automatically generates new [AMP HTML](https://www.ampproject.org/docs/get_started/about-amp.html) pages\n- [Freely customize AMP HTML template](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#to-customize-template)\n- [Automatically validate AMP HTML pages](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#7-automatically-validate-amp-html-option)\n- [Improve generation speed (Cache mode)](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#6-cache-option)\n- [Supports external services](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#supports-external-services)\n\n\n\n## Installation\n\n``` bash\n$ npm install hexo-generator-amp --save\n```\n\nIf you occur `ERROR Plugin load failed:` error or `DTraceProviderBindings.node` error , please see below.\n\n- [ISSUE_TEMPLATE](https://github.com/tea3/hexo-generator-amp/blob/master/.github/ISSUE_TEMPLATE.md)\n- [DTraceProviderBindings.node issue #1 (hexo-related-popular-posts)](https://github.com/tea3/hexo-related-popular-posts/issues/1)\n\nTo publish AMP HTML, please refer to the following simple procedure.\n\n### 1. Edit your theme\n\nYou must add AMP HTML's link to non-AMP.\n\n\u003e Accelerated Mobile Pages Project - [Prepare Your Page for Discovery and Distribution](https://www.ampproject.org/docs/get_started/create/prepare_for_discovery)\n\nFirst, add the following in your template files. For example , Please edit `themes/(your-theme)/layout/_partial/head.ejs` as following .  For example , in [hexo-theme-landscape](https://github.com/hexojs/hexo-theme-landscape) you will edit `themes/landscape/layout/_partial/head.ejs`.\n\n``` ejs\n\u003c% if (is_post() \u0026\u0026 config.generator_amp){ %\u003e\n  \u003clink rel=\"amphtml\" href=\"\u003c%= config.url %\u003e\u003c%= config.root %\u003e\u003c%= page.path %\u003e/amp/index.html\"\u003e\n\u003c% } %\u003e\n```\n\nPlease refer follow as about how to use this plugin with based other templates.\n\n- [Jade template](https://github.com/tea3/hexo-generator-amp/issues/13)\n- [Swig template (e.g. hexo-theme-next)](https://github.com/tea3/hexo-generator-amp/issues/14)\n\nTo change path of AMP HTML , please see [wiki](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#generateamppath).\n\n### 2. Set the quick option\n\nPlease set the following options. Please edit `_config.yml`.\n\n``` yaml\n# hexo-generator-amp\n# The following settings is the quick start options.\n\ngenerator_amp:\n  templateDir:  amp-template\n  assetDistDir: amp-dist\n  logo:\n    path:   sample/sample-logo.png\n    width:  600\n    height: 60\n  substituteTitleImage:\n    path:   sample/sample-substituteTitleImage.png\n    width:  1024\n    height: 800\n  warningLog: false   # To display warning, please set true.\n```\n\nTo set the detail option , please see [wiki](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#options).\n\n### 3. Run server\n\nStarts a local server. By default, this is at `http://localhost:4000/`.\n\n``` bash\n$ hexo clean\n$ hexo server\n```\n\nThis plugin generated the AMP HTML. Please open `http://localhost:4000/your-posts-parmalink/amp/` in browser.\n\nIf occured plugin error , Please refer [#17](https://github.com/tea3/hexo-generator-amp/issues/17) and [other issue](https://github.com/tea3/hexo-generator-amp/issues?q=is%3Aissue+is%3Aclosed) .\n\n### 4. Validate AMP HTML\n\nThis plugin generated the AMP HTML. Output file path is `./your-posts-parmalink/amp/`. Next , you should validate AMP HTML with the following procedure.\n\n1. Please open your AMP HTML page in [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/).\n2. The Chrome DevTools console can check for AMP HTML. please Append `http://localhost:4000/your-posts-parmalink/amp/#development=1` to the URL. Please see below for the details.\n\n\u003e Accelerated Mobile Pages Project - [Validate AMP Pages](https://www.ampproject.org/docs/guides/validate.html)\n\n\u003e How to validate AMP - [my blog](https://photo-tea.com/p/how-to-validate-amp/) (Japanese)\n\n\nTo validate automatically from commandline , please see [wiki - Automatically Validate AMP HTML option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#7-automatically-validate-amp-html-option).\n\n### 5. Deploy\n\nIf no AMP HTML Validation error is displayed , verification is complete . Please deploy at the end.\n\n``` bash\n$ hexo clean\n$ hexo server\n$ hexo generate\n$ hexo deploy -g\n```\n\nWhen the deployment is completed , Please check the [AMP report](https://support.google.com/webmasters/answer/6328309?hl=en)\n\n\n## Wiki\n\nPlease see the [wiki](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings) for detailed usage.\n\n- [To customize template](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#to-customize-template)\n- [To change path of AMP HTML](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#generateamppath)\n- [About more option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#options)\n\n    - [Google Adsense Option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#1-google-adsense-option)\n    - [Template Option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#2-template-option)\n    - [Google Analytics Option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#3-google-analytics-option)\n    - [Minify Option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#4-minify-option)\n    - [Log \u0026 Auto Validation Log Option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#5-log--auto-validation-log-option)\n    - [Cache Option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#6-cache-option)\n    - [Automatically validate AMP HTML option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#7-automatically-validate-amp-html-option)\n    - [Footer Option (authorDetail)](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#8-footer-option-authordetail)\n    - [Front-matter option](https://github.com/tea3/hexo-generator-amp/wiki/More-Settings#front-matter-option)\n    \n\n## License\n\nMIT\n\n[Hexo]: http://hexo.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftea3%2Fhexo-generator-amp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftea3%2Fhexo-generator-amp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftea3%2Fhexo-generator-amp/lists"}