create-next-mdx-blog-app 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,6 +18,7 @@ This project was developed with the help of **Claude** (Anthropic) and **Cursor*
18
18
  - [Code Sandbox](#%EF%B8%8F-code-sandbox)
19
19
  - [Author Profile Pages](#-author-profile-pages)
20
20
  - [Search](#-search)
21
+ - [Tags](#-tags)
21
22
  - [Newsletter Subscription](#-newsletter-subscription)
22
23
  - [Supabase Database](#%EF%B8%8F-supabase-database)
23
24
  - [Article Manager CLI](#%EF%B8%8F-article-manager-cli)
@@ -42,7 +43,7 @@ Scaffold the blog into an empty directory:
42
43
  npx create-next-mdx-blog-app .
43
44
  ```
44
45
 
45
- The installer ([`create-next-mdx-blog-app`](https://www.npmjs.com/package/create-next-mdx-blog-app/), v2.2.3, MIT) clones the app, installs dependencies, and prints the environment setup steps.
46
+ The installer ([`create-next-mdx-blog-app`](https://www.npmjs.com/package/create-next-mdx-blog-app/), v2.2.5, MIT) clones the app, installs dependencies, and prints the environment setup steps.
46
47
 
47
48
  ### Option 2 — Manual clone
48
49
 
@@ -208,6 +209,7 @@ Wraps the Next.js `<Image>` component with `<figure>`/`<figcaption>` for seamles
208
209
  | **Copy link** | `src/components/CopyLinkButton.tsx` | Article-header button; copies the page URL with a brief icon-swap confirmation |
209
210
  | **Social share** | `src/components/SocialShareButtons.tsx` | Pre-filled share dialogs for X (Twitter), LinkedIn, and Reddit using the article title and URL |
210
211
  | **View counter** | `src/components/ViewCounter.tsx` | Live per-article view count in a Supabase `view_counts` table, incremented atomically via the `increment_view_count` RPC. Dynamic pages increment server-side; static pages call the `/api/views/[slug]` route after hydration |
212
+ | **Related articles** | `src/components/RelatedArticles.tsx` | Shown at the bottom of every dynamic article; surfaces up to 5 other articles ranked by shared tags (then publish date) via `fetchRelatedArticles()` |
211
213
 
212
214
  ## 🤖 AI Features
213
215
 
@@ -275,6 +277,14 @@ AND a."articleAuthorName" = 'Abdullah Muhammad.'
275
277
 
276
278
  Before deploying, replace `'Abdullah Muhammad.'` with **your own author name** — it must match the `articleAuthorName` values in your `Article` table **exactly**, including any trailing punctuation. Alternatively, **delete that line entirely** to search across all authors. Re-run the script after editing.
277
279
 
280
+ ## 🏷 Tags
281
+
282
+ Browse articles by topic at `/tags`, which lists every distinct tag pulled from the Supabase `Article` table, with per-tag archive pages at `/tags/[tag]`.
283
+
284
+ - `fetchAllTags()` (`src/utils/functions/tags/fetchAllTags.ts`) — deduplicates tags case-insensitively and counts how many articles carry each one
285
+ - `fetchArticlesByTag()` (`src/utils/functions/crud/fetchArticlesByTag.ts`) — returns every article carrying a given tag, newest first
286
+ - `slugifyTag()` (`src/utils/functions/tags/slugifyTag.ts`) — normalizes tag names into URL-safe slugs (e.g. `"DevOps"` → `"devops"`), so casing/spacing variants still resolve to the same tag page
287
+
278
288
  ## 📬 Newsletter Subscription
279
289
 
280
290
  An integrated newsletter signup form powered by [Resend](https://resend.com). Visitors can subscribe from the home page or the bottom of any article; new subscribers are added to a Resend **Audience** and receive a welcome email.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-next-mdx-blog-app",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
4
4
  "description": "A production-ready technical blog starter kit built with Next.js, MDX, Supabase, and TypeScript.",
5
5
  "author": {
6
6
  "name": "Abdullah Muhammad",