{"id":23886541,"url":"https://github.com/gah-code/my-mdx-starter","last_synced_at":"2026-04-13T18:01:50.570Z","repository":{"id":270472723,"uuid":"910480612","full_name":"gah-code/my-mdx-starter","owner":"gah-code","description":"Gatsby MDX Prisma Blog Starter - Development Notes that supports dynamic MDX pages, category filtering, and pagination.","archived":false,"fork":false,"pushed_at":"2025-01-15T00:59:54.000Z","size":123240,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T05:52:21.707Z","etag":null,"topics":["gatsby","mdx","prisma","template"],"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/gah-code.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}},"created_at":"2024-12-31T11:46:23.000Z","updated_at":"2025-01-15T00:59:56.000Z","dependencies_parsed_at":"2024-12-31T13:19:00.272Z","dependency_job_id":"df8f4555-8577-4598-bc59-18b88046caac","html_url":"https://github.com/gah-code/my-mdx-starter","commit_stats":null,"previous_names":["gah-code/my-mdx-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gah-code/my-mdx-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fmy-mdx-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fmy-mdx-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fmy-mdx-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fmy-mdx-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gah-code","download_url":"https://codeload.github.com/gah-code/my-mdx-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gah-code%2Fmy-mdx-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gatsby","mdx","prisma","template"],"created_at":"2025-01-04T06:36:58.122Z","updated_at":"2026-04-13T18:01:50.555Z","avatar_url":"https://github.com/gah-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gatsby MDX Prisma Blog Starter - Development Notes\n\nThis project is a **Gatsby MDX Prisma Blog Starter** that supports dynamic MDX pages, category filtering, and pagination. It leverages **Gatsby** and **MDX** to create a modern, component-driven blog with optimized image handling and syntax highlighting.\n\n---\n\n## 🚀 Features\n\n- **MDX Support**: Write Markdown with embedded React components.\n- **Dynamic Pages**: Automatically generates pages for posts and categories.\n- **Filter by Category**: Posts can be filtered by category via dynamic tag pages (e.g., `/tags/featured/`).\n- **Pagination**: Paginated category pages make browsing large datasets seamless.\n- **Optimized Images**: Uses `gatsby-plugin-image` for responsive, optimized images.\n- **Syntax Highlighting**: Code blocks use **PrismJS** for styling.\n- **Layouts**: Shared layouts for consistent design.\n- **Sidebar Menu:**\n  - Opens and closes using a smooth transition.\n  - Includes an overlay that closes the menu when clicked outside.\n- **Reusable Components:**\n  - Organized components such as `Header`, `Footer`, `MobileNav`, `HamburgerButton`, and `Overlay`.\n  - Styled components with Emotion for consistent styling.\n- **Accessibility Enhancements:**\n  - Focusable and clickable elements for keyboard and mouse interaction.\n\n---\n\n## 📂 Folder Structure\n\n```\nmy-mdx-starter\n├── gatsby-config.mjs          # Gatsby configuration\n├── gatsby-node.mjs            # Dynamic page creation for posts and categories\n├── gatsby-browser.js          # Global styles and PrismJS theme imports\n├── package.json               # Dependencies and scripts\n├── src\n│   ├── components\n│   ├── layout/\n│   │   ├── Layout.jsx   # Shared layout for pages and posts\n│   │   ├── Header.jsx\n│   │   ├── Navigation.jsx\n│   │   ├── MobileNav.jsx\n│   │   ├── Footer.jsx\n│   │   ├── HamburgerButton.jsx\n│   │   └── Overlay.jsx\n│   ├── common/\n│   │   ├── StyledComponents.jsx # Shared styled components\n│   │   └── GlobalStyles.jsx     # Global styles\n│   ├── pages\n│   │   ├── index.js           # Homepage\n│   │   ├── about.js           # About page\n│   │   ├── blog.js            # Blog index with category filtering\n│   ├── posts\n│   │   ├── example-post\n│   │   │   ├── index.mdx      # Example MDX post with frontmatter\n│   │   │   └── example-image.png\n│   └── templates\n│       ├── post-template.jsx  # Template for individual posts\n│       └── tag-template.jsx   # Template for paginated category pages\n└── README.md\n```\n\n---\n\n## 🛠️ Setup Instructions\n\n### 1. Install Dependencies\n\n```bash\nnpm install\n```\n\n### 2. Start Development Server\n\n```bash\nnpm run develop\n```\n\n### 3. View in Browser\n\n```bash\nhttp://localhost:8000\n```\n\n---\n\n## 📖 Writing Posts\n\n### Add a New Post\n\n1. Create a new folder inside `src/posts/`.\n2. Add an `index.mdx` file and optional images.\n3. Include frontmatter:\n\n```mdx\n---\ntitle: \"New Features\"\nslug: \"/new-features\"\ndate: \"2024-12-31\"\nexcerpt: \"Discover the latest updates and improvements...\"\ncategory: \"Featured\"\nauthor: \"Jane Doe\"\nimage: \"example-image.png\"\nimageAlt: \"Feature Image\"\n---\n\n# Introducing New Features\n\nDiscover the latest updates.\n\n```javascript\nconst greet = (name) =\u003e `Hello, ${name}!`\nconsole.log(greet(\"Gatsby\"))\n```\n\n```\n\n4. Access the post:\n```\n\n\u003chttp://localhost:8000/new-features/\u003e\n\n```\n\n---\n\n## ✨ Plugins Used\n\n- **gatsby-plugin-mdx** - MDX support.\n- **gatsby-source-filesystem** - Sources content.\n- **gatsby-plugin-page-creator** - Generates pages from MDX files.\n- **rehype-prism-plus** - Syntax highlighting.\n- **gatsby-plugin-image** - Optimized images.\n- **gatsby-plugin-sharp** - Image processing.\n- **gatsby-transformer-sharp** - Image queries.\n\n---\n\n## 🌟 Customization\n\n### Syntax Highlighting Theme\n```javascript\nimport \"prismjs/themes/prism-tomorrow.css\"\n```\n\n### MDX Plugins\n\n```javascript\nmdxOptions: {\n  remarkPlugins: [],\n  rehypePlugins: [rehypePrism],\n}\n```\n\n---\n\n## 🚧 Development Notes\n\n- Use **ESM Syntax** (`import/export`).\n- Restart server after changes:\n\n```bash\ngatsby clean\ngatsby develop\n```\n\n- Test GraphQL Queries:\n\n```bash\nhttp://localhost:8000/___graphql\n```\n\n---\n\n## 📜 License\n\nLicensed under the [MIT License](LICENSE).\n\n---\n\n## 📧 Contact\n\nCreated by **Gilbert Haro** - [GitHub](https://github.com/gah-code).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Fmy-mdx-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgah-code%2Fmy-mdx-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgah-code%2Fmy-mdx-starter/lists"}