{"id":37310652,"url":"https://github.com/qzgao/heti-mini","last_synced_at":"2026-01-20T16:36:22.771Z","repository":{"id":308986921,"uuid":"1034806071","full_name":"QZGao/heti-mini","owner":"QZGao","description":"赫蹏 mini，輕量級的標點擠壓、盤古空格排版方案","archived":false,"fork":false,"pushed_at":"2025-08-11T16:37:36.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-16T22:53:26.347Z","etag":null,"topics":["css","han","js","typography"],"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/QZGao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-08-09T02:58:07.000Z","updated_at":"2025-08-11T16:37:39.000Z","dependencies_parsed_at":"2025-08-09T04:32:59.005Z","dependency_job_id":"62878a49-07ca-4c4d-8617-d9f5569dbbda","html_url":"https://github.com/QZGao/heti-mini","commit_stats":null,"previous_names":["qzgao/heti-mini"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QZGao/heti-mini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QZGao%2Fheti-mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QZGao%2Fheti-mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QZGao%2Fheti-mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QZGao%2Fheti-mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QZGao","download_url":"https://codeload.github.com/QZGao/heti-mini/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QZGao%2Fheti-mini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28476667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T00:15:39.755Z","status":"online","status_checked_at":"2026-01-16T02:00:07.781Z","response_time":107,"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":["css","han","js","typography"],"created_at":"2026-01-16T03:00:27.926Z","updated_at":"2026-01-16T03:00:42.853Z","avatar_url":"https://github.com/QZGao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 赫蹏 mini\n\n赫蹏（hètí）是專為中文內容展示設計的排版樣式增強。它基於通行的中文排版規範而來，可以為網站的讀者帶來更好的文章閱讀體驗。 \n\n請參見原 repo 的更多說明：[sivan/heti](https://github.com/sivan/heti)（[貢獻者](https://github.com/sivan/heti/graphs/contributors)）。\n\n此 mini 版移除了大多數 CSS 規則，且對繁體中文標點擠壓做了調整，便於部落格網站使用。\n\n## 使用方法\n\n1. 在頁面 `\u003chtml\u003e` 標籤加入語言屬性，例如 `lang=\"zh-Hant-TW\"` 或 `lang=\"zh-Hans-CN\"`：\n\n```html\n\u003chtml lang=\"zh-Hant-TW\"\u003e\n```\n\n2. 在需要使用赫蹏排版的元素上加入 `heti` 類，例如：\n\n```html\n\u003carticle class=\"heti\"\u003e\n```\n\n3. 在頁面 `\u003chead\u003e` 標籤加入以下內容：\n\n```html\n\u003clink rel=\"stylesheet\" href=\"//unpkg.com/heti-mini/dist/heti.min.css\"\u003e\n\u003cscript src=\"//unpkg.com/heti-mini/dist/heti.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  document.addEventListener('DOMContentLoaded', () =\u003e {\n    const heti = new Heti('.heti');\n    heti.autoSpacing();\n  });\n\u003c/script\u003e\n```\n\n若頁面為動態載入，則可在須排版內容完全載入後再執行 `heti.autoSpacing()`。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqzgao%2Fheti-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqzgao%2Fheti-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqzgao%2Fheti-mini/lists"}