{"id":50304892,"url":"https://github.com/doedja/literal-blog","last_synced_at":"2026-05-28T15:30:41.624Z","repository":{"id":352869046,"uuid":"1216921361","full_name":"doedja/literal-blog","owner":"doedja","description":"Minimal Astro blog with Sveltia CMS, one-click Cloudflare Pages deploy.","archived":false,"fork":false,"pushed_at":"2026-04-21T13:05:32.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T14:39:10.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Astro","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/doedja.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T11:14:09.000Z","updated_at":"2026-04-21T13:05:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/doedja/literal-blog","commit_stats":null,"previous_names":["doedja/literal-blog"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/doedja/literal-blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doedja%2Fliteral-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doedja%2Fliteral-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doedja%2Fliteral-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doedja%2Fliteral-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doedja","download_url":"https://codeload.github.com/doedja/literal-blog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doedja%2Fliteral-blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33615489,"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-05-28T02:00:06.440Z","response_time":99,"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-05-28T15:30:40.585Z","updated_at":"2026-05-28T15:30:41.600Z","avatar_url":"https://github.com/doedja.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# literal-blog\n\nMinimal Astro blog with a built-in CMS at `/admin`, deployable to Cloudflare in one click.\n\n\u003e This is the theme powering **[doedja.com](https://doedja.com)**. The private blog is kept in a separate repo; this is the stripped, generic version.\n\n- Markdown posts in `src/content/posts/{category}/*.md`\n- Pages in `src/content/pages/*.md`\n- Sveltia CMS at `/admin`, logs in with GitHub, commits to your repo\n- Runs as a single Cloudflare Worker with static assets — no separate worker for OAuth\n\n## Deploy\n\n[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/doedja/literal-blog)\n\nIf you fork under a different username, update the button URL in your README to match.\n\n### Setup\n\n1. **Fork and deploy.** Click the button above. Cloudflare forks this repo to your GitHub and creates a Worker project. The first build runs `bun run build` automatically.\n\n2. **Register a GitHub OAuth app** at https://github.com/settings/developers → **New OAuth App**:\n   - Homepage URL: `https://\u003cyour-worker-url\u003e`\n   - Authorization callback URL: `https://\u003cyour-worker-url\u003e/api/auth/callback`\n\n   Copy the Client ID. Generate a client secret and copy that too.\n\n3. **Add environment variables** in Cloudflare → your Worker → Settings → Variables and Secrets:\n\n   | Name | Value | Type |\n   |---|---|---|\n   | `GITHUB_REPO` | `your-username/your-fork` | plaintext |\n   | `GITHUB_BRANCH` | `main` (optional) | plaintext |\n   | `GITHUB_CLIENT_ID` | from step 2 | secret |\n   | `GITHUB_CLIENT_SECRET` | from step 2 | secret |\n\n4. **Redeploy** (Deployments tab → latest → Retry). Then visit `/admin` and log in with GitHub.\n\n## Local development\n\n```bash\nbun install\nbun run dev           # Astro dev server (no worker routes)\nbun run dev:worker    # Full worker + assets via wrangler\n```\n\nFor `/admin` to work locally you also need a `.dev.vars` file with the env vars. See `.env.example`.\n\nEdit posts in `src/content/posts/`, pages in `src/content/pages/`. Push to trigger a rebuild.\n\n## Customize\n\n- **Site metadata**: `site.config.ts`\n- **Navigation**: `src/layouts/Base.astro`\n- **Styles**: `src/styles/global.css`\n- **Post template**: `src/layouts/Post.astro`\n- **CMS collections**: `src/api/admin-config.ts` — add fields or new categories here\n\n## Add a category\n\n1. Create `src/content/posts/\u003ccategory\u003e/` and drop markdown files in.\n2. Add a matching collection entry in `src/api/admin-config.ts`.\n3. Push. The home page, archive, and RSS pick it up automatically.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoedja%2Fliteral-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoedja%2Fliteral-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoedja%2Fliteral-blog/lists"}