{"id":16998343,"url":"https://github.com/nguyenhongthe/myghost","last_synced_at":"2026-04-09T18:53:45.511Z","repository":{"id":185405842,"uuid":"673497670","full_name":"nguyenhongthe/MyGhost","owner":"nguyenhongthe","description":"Giao diện tối giản cho Nguyễn Hồng Thế Blog.","archived":false,"fork":false,"pushed_at":"2025-01-15T13:31:01.000Z","size":697,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T07:42:02.584Z","etag":null,"topics":["ghost","ghost-blog","ghost-blog-theme","ghost-cms","ghost-theme","ghost-themes"],"latest_commit_sha":null,"homepage":"https://nguyenhongthe.net","language":"Handlebars","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/nguyenhongthe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-08-01T19:03:01.000Z","updated_at":"2025-01-15T13:31:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b97de395-1761-41e9-82bb-dd9477874c19","html_url":"https://github.com/nguyenhongthe/MyGhost","commit_stats":{"total_commits":72,"total_committers":1,"mean_commits":72.0,"dds":0.0,"last_synced_commit":"afc9a6b99afc6727791339c7d7cb191d113ac7dc"},"previous_names":["nguyenhongthe/myghost"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhongthe%2FMyGhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhongthe%2FMyGhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhongthe%2FMyGhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhongthe%2FMyGhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nguyenhongthe","download_url":"https://codeload.github.com/nguyenhongthe/MyGhost/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244921020,"owners_count":20532154,"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":["ghost","ghost-blog","ghost-blog-theme","ghost-cms","ghost-theme","ghost-themes"],"created_at":"2024-10-14T04:04:56.507Z","updated_at":"2025-10-09T11:44:15.052Z","avatar_url":"https://github.com/nguyenhongthe.png","language":"Handlebars","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyGhost\n\nGiao diện tối giản cho [Nguyễn Hồng Thế Blog](https://nguyenhongthe.net).\n\n## Hướng dẫn\n\n### Cài đặt thủ công\n\n1. [Tải theme](https://github.com/nguyenhongthe/myghost/archive/main.zip)\n2. Đăng nhập vào Ghost, và điều hướng đến khu vực cài đặt `Design` để tải lên tệp zip của theme.\n3. Sau khi tải lên, bạn có thể chọn theme `MyGhost` để sử dụng.\n\n### Cài đặt tự động (khuyến khích nếu bạn muốn phát triển thêm giao diện)\n\nBạn có thể cài đặt theme tự động thông quan Github Action.\n\n1. Đăng nhập vào khu vực admin của Ghost blog của bạn, và điều hướng đến khu vực `Settings` \u003e `Integrations` \u003e `Add custom integration` để tạo API.\n2. Điền tên của API, ví dụ `Github Action`, và chọn `Create`.\n3. Trong cửa sổ hiện ra, bạn sẽ thấy `Admin API Key` và `API URL`. Bạn sẽ cần 2 giá trị này để sử dụng trong các bước tiếp theo.\n4. Tạo một fork của repo này.\n5. Đăng nhập vào Github, và điều hướng đến khu vực `Settings` của repo.\n6. Trong tab `Secrets and variables`, chọn `Action`.\n7. Tiếp tục chọn `Secrets`, sau đó click nút `New repository secret` và tạo 2 biến môi trường `GHOST_ADMIN_API_URL` và `GHOST_ADMIN_API_KEY` với giá trị tương ứng là `API URL` và `Admin API Key` bạn đã tạo ở bước 3.\n8. Chọn `Actions` và chọn `I understand my workflows, go ahead and enable them`.\n9. Chọn `Actions` và chọn `Deploy Theme`.\n10. Chọn `Run workflow` và chờ đợi quá trình cài đặt hoàn tất.\n\n\u003e Chú ý: Các bước ở trên chỉ cần thực hiện một lần duy nhất. Sau này, mỗi khi bạn chỉnh sửa code của theme, commit và push code lên Github, Github Action sẽ tự động cài đặt theme mới vào website đang chạy Ghost blog cho bạn.\n\n## Phát triển\n\nMyGhost được phát triển dựa trên theme cơ bản [Starter](https://github.com/TryGhost/Starter) của Ghost. Bạn có thể tham khảo [Ghost Themes Documentation](https://ghost.org/docs/themes/) để biết thêm chi tiết.\n\nGiao diện được viết bằng [Handlebars](https://handlebarsjs.com/) và được biên dịch bằng Gulp/PostCSS. Bạn cần cài đặt [Node](https://nodejs.org/), [Yarn](https://yarnpkg.com/) và [Gulp](https://gulpjs.com) để có thể phát triển giao diện.\n\nSau khi cài đặt các phần mềm cần thiết, bạn có thể chạy các lệnh sau để phát triển giao diện:\n\n```bash\n# Clone the repo\ngit clone https://github.com/nguyenhongthe/MyGhost.git\n\n# Di chuyển vào thư mục giao diện\ncd MyGhost\n\n# Cài đặt các gói phụ thuộc\nyarn\n\n# Chạy giao diện trong chế độ phát triển\nyarn dev\n```\n\nBây giờ bạn có thể chỉnh sửa các tệp `/assets/css/`, các tệp này sẽ được biên dịch tự động vào thư mục `/assets/built/`.\n\nĐể chạy giao diện trên máy chủ Ghost, bạn cần tạo liên kết tượng trưng (symlink) từ thư mục giao diện đến thư mục chứa Ghost blog.\n\n```bash\n# Tạo liên kết tượng trưng\nln -s /dir/to/your/themes/MyGhost /dir/to/your/ghost-site/content/themes/myghost\n```\n\nKhởi động lại Ghost blog và giao diện sẽ được liệt kê trong khu vực `Design` của Ghost Admin.\n\n## Các lệnh hữu ích\n\nKiểm tra tính tương thích của theme với gscan:\n\n```bash\nyarn gscan PATH_TO_THEME\n```\n\nhoặc\n\n```bash\nyarn test\n```\n\nĐóng gói các tệp của giao diện vào tệp `dist/MyGhost.zip`, bạn có thể tải tệp này lên website của bạn để cài đặt giao diện thủ công.\n\n```bash\nyarn zip\n```\n\n## Đóng góp và báo lỗi\n\n- Nếu bạn gặp lỗi khi sử dụng giao diện, hoặc bạn muốn góp ý cho giao diện, hãy tạo một issue mới tại [nguyenhongthe/MyGhost/issues](https://github.com/nguyenhongthe/MyGhost/issues).\n\n- Repo này được đồng bộ tự động với private monorepo [nguyenhongthe/repo.vnscdn.com](https://github.com/nguyenhongthe/repo.vnscdn.com) thông qua Github Action. Vui lòng không tạo pull request trực tiếp tại repo này.\n\n## Bản quyền và giấy phép\n\nCopyright (c) 2012-2024 Nguyễn Hồng Thế Blog - Phát hành theo giấy phép [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenhongthe%2Fmyghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenhongthe%2Fmyghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenhongthe%2Fmyghost/lists"}