{"id":18749690,"url":"https://github.com/coditva/haunted","last_synced_at":"2026-04-09T02:31:13.018Z","repository":{"id":42236428,"uuid":"374354341","full_name":"coditva/Haunted","owner":"coditva","description":"A blog theme for Ghost as headless CMS","archived":false,"fork":false,"pushed_at":"2023-04-22T17:04:24.000Z","size":1338,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T18:48:23.114Z","etag":null,"topics":["blog","ghost","ghost-theme","nextjs","tailwindcss","vercel"],"latest_commit_sha":null,"homepage":"https://haunted.vercel.app","language":"TypeScript","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/coditva.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":"2021-06-06T12:26:29.000Z","updated_at":"2025-03-01T14:13:12.000Z","dependencies_parsed_at":"2024-12-29T01:16:41.482Z","dependency_job_id":null,"html_url":"https://github.com/coditva/Haunted","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coditva/Haunted","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2FHaunted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2FHaunted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2FHaunted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2FHaunted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coditva","download_url":"https://codeload.github.com/coditva/Haunted/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coditva%2FHaunted/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31582567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["blog","ghost","ghost-theme","nextjs","tailwindcss","vercel"],"created_at":"2024-11-07T17:08:25.003Z","updated_at":"2026-04-09T02:31:13.002Z","avatar_url":"https://github.com/coditva.png","language":"TypeScript","readme":"![Haunted](docs/assets/logo.png)\n\nA blog theme for Ghost as headless CMS.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fcoditva%2FHaunted\u0026env=GHOST_URL,CONTENT_KEY,SUBSCRIBE_FORM\u0026project-name=haunted-theme-ghost)\n\n# Features\n* Responsive.\n* Dark theme based on media query.\n* Support for posts and pages from [Ghost CMS][5].\n* Pre-fetches pages content using NextJS's `next/link` (even inside posts!).\n* Subscription using [Buttondown][1] newsletters.\n\n## Up next\n* Support for `next/images` inside posts.\n* Tags.\n* Author pages.\n* Better test coverage.\n\n# Getting Started\n\nThis theme is built using **NextJS** and **TailwindCSS**. The whole website is\nstatically rendered to provide optimal performance. This, along with edge\nnetwork provides like [Vercel][3] or [Netlify][4], can be leveraged to provide\nthe best experience possible for a blog or website.\n\nAdditionally, there is provision to provide newsletter subscription using\n[Buttondown][1].\n\n## Configuring build environment\n\nTo deploy this theme, start by setting up the environment:\n\n- Configure the environment variables defined in the [`config.ts`](config.ts)\nfile. To get your content key, follow the [Ghost guide][2].\n- If you're using a Ghost installation which does not support the content API\nv4, you might also need to change the `ghost.apiVersion` to the appropriate\nvalue.\n\n## Configuring images\n\nYou might also need to configure [`next.config.js`](next.config.js) for image\ndomains and such if you have images from domains other than *Unsplash* and your\nown ghost installation server.\n\n```javascript\nconst imageDomains = [\n  process.env.GHOST_URL,\n  'images.unsplash.com',\n  // your domains here\n];\n```\n\n*If you're using Vercel or Netlify, you don't need to follow the steps below.\nThey support NextJS out of the box.*\n\n## Build the theme\n\nTo create a production build, simply punch in these commands:\n```bash\nnpm install --only production\nnpm run build\n```\n\n## Start the server\nFinally, start the server. This would start listening on port `3000`.\n```bash\nnpm start\n```\n\n*You might need to configure any reverse proxy or load balancer to forward to\nthis port.*\n\n# Contributing\n\nGet started by running the server in development mode. This provides hot\nreloading of the app with every change. This would start listening on port\n`3000`.\n\n```bash\nnpm run dev\n```\n\n## Running tests\nThe tests are present in the [`tests/`](tests) directory. They are divided into\nunit tests and integration tests. The tests follow the similar directory\nstructure as the `lib/components/` or `lib/stores/` directories.\n\nYou can run the whole test suite or only unit or integration tests:\n```bash\nnpm run test\nnpm run test-unit\nnpm run test-integration\n```\n\n[1]: https://buttondown.email/\n[2]: https://ghost.org/integrations/custom-integrations/#copy-api-key\n[3]: https://vercel.com/\n[4]: https://www.netlify.com/\n[5]: https://ghost.org/docs/jamstack/\n\n\n## License\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditva%2Fhaunted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoditva%2Fhaunted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoditva%2Fhaunted/lists"}