Introducing a new way to review your PRs.

Read the announcement

glincker / thesvg

The open SVG brand library: 7,600+ brand logos and cloud icons (AWS, Azure, GCP) as official SVG. Search, copy, ship via npm, CDN, CLI, React, Vue, Svelte, Figma, VS Code, Raycast and MCP. Free, MIT, no gatekeeping.

View on GitHub

27 documents · Updated Nov 23, 2026

docs / content-collections-and-discovery-pages

Content collections and discovery pages

theSVG turns one shared icon catalog into several discovery paths. Editorial posts explain changes, collection pages group icons by source or purpose, category pages group them by topic, and campaign pages give a focused set a richer entry point.

Content surfaces

Editorial posts

Editorial posts are dated updates about the library and its surrounding tools. The records in src/…/posts.json provide the title, summary, author, date, tags, and body used by both the blog index and each post page. The index sorts posts by date, gives the newest post a featured position, and presents the remaining posts as a dated timeline.

Each post has a stable /blog/<slug> address. The detail page exposes the post as an article with its date, author, tags, readable body content, sharing controls, and article metadata. Its body supports the small set of Markdown forms used by editorial content, including headings, lists, code blocks, tables, and links. The renderer keeps fenced code together even when it contains blank lines. It also blocks unsafe JavaScript links and marks external links for a new tab with blog-post tracking. The page emits article structured data so search systems receive the post identity and publication details. The blog also points readers to the RSS feed so updates can leave the website and enter a reader or other client.

For the publishing workflow and feed contract, see Blog and feed publishing.

References: src/…/posts.json• L1-12 src/…/page.tsx• L28-70 src/…/page.tsx• L28-68 src/…/page.tsx• L80-182 src/…/page.tsx• L184-203

Curated collections

A collection is a named set of icons that share a source or use, such as brand marks, AWS architecture icons, Azure services, Google Cloud icons, or Kubernetes resources. Each icon carries one collection label in the catalog, so the site can count the set and show it as a focused browse surface.

Collection pages use the same browse experience as the home page. They start with the selected collection, then let the reader search, sort, change the grid view, inspect favorites, and narrow the set by categories. The sidebar keeps the collection choice visible and shows category counts for the active collection once its catalog is available.

Collection pages have stable /collection/<name> addresses and include collection-specific page metadata and item counts. The allowed collection names are part of the page contract, so a new catalog group needs a matching public route before navigation can expose it.

For the rules that shape collection and category navigation, see Categories, collections, and campaigns.

References: src/…/icons.json• L1-12 src/…/icons.ts• L3-17 src/…/icons.ts• L54-60 src/…/icons.ts• L82-105 src/…/page.tsx• L15-107 src/…/page.tsx• L148-195 src/…/home-content.tsx• L171-191

Category landing pages

A category is a topic label attached to one or more icons. The site derives the category list and counts from the catalog rather than maintaining a separate page list. A category name becomes a URL slug through one shared rule, which keeps sidebar links, page routes, and sitemap entries aligned.

Generic category pages use the shared icon browser with the category already selected. They show the category count in page metadata and structured data while still allowing the reader to search, sort, switch views, and combine the category with other browse controls.

Category navigation normally stays as a query on the home route. The site can promote selected categories to a canonical landing route instead. This keeps an old /?category=... link useful while moving the reader to the preferred page when a dedicated landing exists.

References: src/…/icons.ts• L66-98 src/…/categories.ts• L1-11 src/…/categories.ts• L23-37 src/…/page.tsx• L16-31 src/…/page.tsx• L37-80 src/…/page.tsx• L83-127 src/…/home-content.tsx• L44-58

Category directory

The category directory is a broad entry point for topic-based discovery. It derives category counts and sample icons from the catalog, groups the visible categories by source, and sends readers to the matching category browse view.

Brand categories use the shared category URL rule. AWS architecture categories retain their collection in the home-page query so the same topic name stays scoped to AWS icons. The directory also supplies the full category counts and collection list to the shared navigation shell.

References: src/…/page.tsx• L5-35 src/…/page.tsx• L78-99 src/…/page.tsx• L101-169 src/…/icons.ts• L66-98 src/…/categories.ts• L23-37

Campaign pages

A campaign page is a special landing page for a timely or highly focused icon set. It uses catalog categories as its source, but it can present a stronger story than the generic category browser through a hero, a selected lead icon, set-level counts, and filters designed for that campaign.

The Google 2026 page is the current example. It reads the Google 2026 category, highlights the Google Workspace mark, and lets readers filter the rest of the set by text or color before opening an icon detail page. Sidebar navigation, the Google category page, and the category URL helper all point readers toward this dedicated surface.

Campaign pages remain part of the category system for discovery. They use a canonical category URL and structured item data, so search engines and ordinary navigation can reach the same focused set without creating a separate icon source.

References: src/…/page.tsx• L8-24 src/…/page.tsx• L59-125 src/…/google-2026-landing.tsx• L20-75 src/…/google-2026-landing.tsx• L135-236 src/…/categories.ts• L13-35 src/…/sidebar.tsx• L257-295

Discovery flow

Shared catalog path

All icon discovery surfaces lead to the same catalog records and then to the same icon detail pages. The difference is the starting scope: the home page starts broad, a collection starts by source, a category starts by topic, and a campaign starts with a curated presentation of one focused set.

The following diagram shows how catalog data becomes the main discovery surfaces and then an icon detail page.

flowchart LR
    C[Icon catalog] --> H[Home browse]
    C --> CL[Collection page]
    C --> CA[Category page]
    C --> CP[Campaign page]
    H --> F[Search and filters]
    CL --> F
    CA --> F
    CP --> CT[Campaign filters]
    F --> D[Icon detail page]
    CT --> D

The shared browser keeps search and filter state in the URL where possible. This makes a narrowed collection or category view linkable while preserving the page that owns the view.

References: src/…/page.tsx• L52-69 src/…/home-content.tsx• L34-66 src/…/home-content.tsx• L93-149 src/…/home-content.tsx• L171-210 src/…/google-2026-landing.tsx• L59-75

The desktop and mobile navigation expose blog posts, collections, categories, and featured campaign pages as related ways to enter the catalog. Collection links use collection names, category links use the shared category URL helper, and the featured Google 2026 link bypasses the generic category view.

The home page also connects related surfaces. A Google category view can promote the Google 2026 campaign, while a campaign page links back to the wider Google icon category. These links let a reader move from a broad topic to a focused set and return without losing the catalog context.

References: src/…/sidebar.tsx• L169-186 src/…/sidebar.tsx• L201-321 src/…/sidebar-shell.tsx• L23-38 src/…/home-content.tsx• L456-481 src/…/google-2026-landing.tsx• L233-236

Page reachability

The site creates static page parameters for known blog posts, collections, and category slugs. Its sitemap then publishes the main home, blog, collection, category, campaign, and icon detail addresses so the same discovery paths are available to search systems as well as people.

Page metadata describes the current scope. Collection and category pages publish item counts, while blog detail pages publish article fields such as the author, date, tags, and canonical URL. The campaign page adds an ordered item list for its focused icon set.

References: src/…/page.tsx• L28-32 src/…/page.tsx• L34-68 src/…/page.tsx• L96-107 src/…/page.tsx• L27-31 src/…/sitemap.ts• L18-63 src/…/sitemap.ts• L65-82 src/…/page.tsx• L63-113

Change checklist

When these files or sections are changed, remember to consider these:

  • When a collection is added or renamed, keep the catalog label, allowed collection routes, page metadata, sidebar link, and sitemap entry aligned.
  • When a category name changes, check its slug, generated category route, canonical URL, sitemap entry, and any links that use the category URL helper.
  • When a custom landing is added, keep the category directory link and the dedicated-landing URL rule aligned with the generic category route.
  • When a campaign category changes, keep the exact catalog category, campaign copy, lead icon, filters, structured item list, and cross-links in sync.
  • When a post field or slug changes, preserve the shared shape used by the blog index, detail page, metadata, structured data, and sitemap.

Important failure modes

TriggerConsequenceGuard
A collection appears in catalog data but not in the allowed route setNavigation can expose a collection whose page is not reachableUpdate the collection route contract and its metadata with the catalog change
Two category names produce the same slugOne category wins the route map and the other becomes hard to reachCheck slug uniqueness whenever category labels change
A custom landing is not registered in the category URL helperSidebar and old query links can lead to the generic page instead of the campaign pageAdd the category to the dedicated-landing list and verify both link forms
A campaign category has no matching catalog recordsThe campaign has no hero or icon set and its counts and structured data are emptyVerify the exact category label and its records before publishing the page
A post record lacks a field used by the list or detail viewThe blog can show broken labels or fail while building a post pageKeep post records complete for the shared list and detail shape

Key files

FileWhy to read it
src/…/posts.jsonSource of editorial titles, dates, tags, summaries, and bodies
src/…/icons.jsonSource of icon collection labels, category labels, slugs, and display data
src/…/icons.tsDefines the catalog queries and the counts used by discovery pages
src/…/categories.tsDefines category slugs and the rule for dedicated category landings
src/…/page.tsxShows the editorial index and its featured-post relationship
src/…/page.tsxShows the article page, canonical metadata, structured data, body rendering boundary, and link safety behavior
src/…/page.tsxShows the catalog-backed category directory and its source-specific links
src/…/page.tsxShows how a named collection becomes a scoped browse page
src/…/page.tsxShows how catalog categories become generic landing pages
src/…/page.tsxShows the dedicated campaign page contract and item metadata
src/…/home-content.tsxShows the shared search, filter, URL, and browse behavior
src/…/google-2026-landing.tsxShows the focused campaign presentation and campaign filters
src/…/sitemap.tsShows which discovery and detail URLs are exposed for indexing