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

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 +10 -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.4, MIT) clones the app, installs dependencies, and prints the environment setup steps.
46
47
 
47
48
  ### Option 2 — Manual clone
48
49
 
@@ -275,6 +276,14 @@ AND a."articleAuthorName" = 'Abdullah Muhammad.'
275
276
 
276
277
  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
278
 
279
+ ## 🏷 Tags
280
+
281
+ 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]`.
282
+
283
+ - `fetchAllTags()` (`src/utils/functions/tags/fetchAllTags.ts`) — deduplicates tags case-insensitively and counts how many articles carry each one
284
+ - `fetchArticlesByTag()` (`src/utils/functions/crud/fetchArticlesByTag.ts`) — returns every article carrying a given tag, newest first
285
+ - `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
286
+
278
287
  ## 📬 Newsletter Subscription
279
288
 
280
289
  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.4",
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",