{"id":50890007,"url":"https://github.com/tinymins/blog","last_synced_at":"2026-06-15T20:32:26.257Z","repository":{"id":357388744,"uuid":"1236730136","full_name":"tinymins/blog","owner":"tinymins","description":"Personal blog — minrc.com — content lives in GitHub Issues","archived":false,"fork":false,"pushed_at":"2026-05-12T15:45:38.000Z","size":6855,"stargazers_count":0,"open_issues_count":67,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T16:23:18.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinymins.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-12T14:15:34.000Z","updated_at":"2026-05-12T15:01:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tinymins/blog","commit_stats":null,"previous_names":["tinymins/blog"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tinymins/blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fblog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fblog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fblog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fblog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinymins","download_url":"https://codeload.github.com/tinymins/blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinymins%2Fblog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34379915,"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-06-15T02:00:07.085Z","response_time":63,"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":[],"created_at":"2026-06-15T20:32:25.691Z","updated_at":"2026-06-15T20:32:26.245Z","avatar_url":"https://github.com/tinymins.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emil Zhai's Blog\n\nA static SPA (Vite + React 19 + TS) hosted on GitHub Pages.\n**Posts live as GitHub Issues** — open a new issue to publish a post.\n\n🌐 **Production**: https://minrc.com/  ·  **Repo Pages preview**: https://tinymins.github.io/blog/\n\n---\n\n## How content works\n\n| Thing | Where |\n| --- | --- |\n| Post body | A GitHub **Issue** opened by the repo owner (`tinymins`) |\n| Post title | Issue title |\n| Categories / tags | Issue labels |\n| Comments | Issue comments |\n| Images | Pushed to the **`assets`** branch under `posts/\u003cslug\u003e/`, embedded in the issue body via `https://raw.githubusercontent.com/tinymins/blog/assets/...` |\n\nThe frontend fetches issues via the public GitHub REST API — no backend, no auth. See [`src/api.ts`](src/api.ts).\n\n## Publish a new post\n\n1. Open a new issue at https://github.com/tinymins/blog/issues/new\n2. Title = post title; body = markdown\n3. To embed an image, drag-and-drop into the issue editor (GitHub will host it on `user-attachments`), **or** push it to the `assets` branch and reference its raw URL — your call. Both work.\n4. Add labels for category / tags.\n5. Submit. Frontend will pick it up on next page load (no rebuild needed — content is fetched at runtime).\n\nEditing or deleting a post = edit or close the issue.\n\n## Local development\n\n```bash\nnpm install\nnpm run dev      # http://localhost:5173\nnpm run build    # output to dist/\nnpm run lint\n```\n\n## Deployment\n\nPushing to `main` triggers `.github/workflows/deploy.yml` which builds and deploys to GitHub Pages via `actions/deploy-pages@v4`. No secrets required.\n\nOptional: analytics (Google Analytics 4 + Microsoft Clarity) can be enabled via two repository secrets — see [`docs/ANALYTICS.md`](docs/ANALYTICS.md).\n\n## For AI assistants\n\nConventions and maintenance routines (esp. **delete orphan labels after publishing / unpublishing posts**) are documented in [`AGENTS.md`](AGENTS.md).\n\n## Custom domain\n\n`public/CNAME` contains `minrc.com`. To change domain:\n1. Edit `public/CNAME`, commit, push.\n2. Update DNS at your registrar (4 A records to GitHub Pages IPs, or CNAME to `tinymins.github.io.`).\n3. In Settings → Pages, update Custom domain.\n\nOther personal domains (`zhaiyiming.com`, `vmins.com`) are configured to 301-redirect to `minrc.com` at the DNS / registrar level (path-preserving).\n\n## Migration from Typecho\n\nOriginal blog was a self-hosted Typecho install at `zhaiyiming.com` (2014–2026).\nAll 66 published posts were migrated to issues by a one-time script:\n- Parsed `typecho_contents` from a MySQL dump\n- Extracted markdown bodies, categories, tags, embedded images\n- Re-hosted images on the `assets` branch (originals on local server + fetched-from-live for legacy `wp-content/` paths + Renren `a.xnimg.cn` icons)\n- Created issues in chronological order, so issue #1 = oldest post\n- Original publish date appended as a footer in each post body\n\n---\n\nMade with assistance from GitHub Copilot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymins%2Fblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinymins%2Fblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinymins%2Fblog/lists"}