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 / blog-and-feed-publishing

Blog and feed publishing

Blog publishing turns editorial updates into dated, discoverable posts on theSVG. A shared post record drives the blog list and each post page, while social links, search metadata, the sitemap, and the RSS document extend the same content to readers and external services.

Editorial post model

Post records

Each post is an editorial record with a stable slug, title, short excerpt, publication date, author, tags, and body. The slug identifies the public page. The excerpt supports previews and descriptions. Tags group the subject and supply context for both the list view and sharing links. The body holds readable Markdown-style content such as headings, lists, links, tables, and code samples. src/…/posts.json is the shared content source for the blog routes and the sitemap.

Posts are ordered by publication date on the blog page. The newest record becomes the featured post. Older records form the remaining chronological list, so a new post changes both the featured item and the order of the archive. The current records extend through September 13, 2026, with the latest entries covering draw.io shape libraries, cloud icon set comparison, icon page design, and SVG performance.

References: src/…/posts.json• L1-12 src/…/posts.json• L171-223 src/…/page.tsx• L27-35 src/…/page.tsx• L64-70

Blog routes

Blog listing route

The /blog route is the main editorial index. It introduces the update stream with the newest post in a large featured card, then presents earlier posts in a compact timeline. Each entry exposes the post title, excerpt, relative or calendar date, tags, and a link to the detail route. The page also gives readers a direct path to the RSS feed and to the project repository.

The listing uses the same category count context as the wider site shell. This keeps editorial discovery connected to the main icon discovery experience without changing the post data model.

References: src/…/page.tsx• L64-95 src/…/page.tsx• L97-207 src/…/page.tsx• L209-237

Blog detail route

The /blog/[slug] route is the canonical reading page for one post. It resolves the slug to a known post, returns a not-found response for an unknown slug, and builds the page from the post title, date, author, tags, excerpt, and body. Only known post slugs are valid, so the set of published routes follows the editorial records.

The detail page presents the body as readable article content and links back to the blog index. External links in a post body receive blog-post tracking and open in a new tab, while internal links keep same-tab behavior. The page also publishes article metadata for search and social systems, including the canonical URL, publication date, author, tags, and BlogPosting structured data. The page renders supported Markdown-style content as article HTML and accepts only approved link schemes, which keeps editorial links usable without allowing unsafe script URLs.

References: src/…/page.tsx• L11-31 src/…/page.tsx• L34-69 src/…/page.tsx• L71-115 src/…/page.tsx• L117-182 src/…/page.tsx• L184-199 src/…/page.tsx• L201-284

Sharing controls

Social sharing

The detail page exposes sharing beside the article on wide screens and below the article on smaller screens. The controls open share actions for X, LinkedIn, Reddit, and Hacker News with the post URL and title. X also receives the post tags as hashtags, which connects editorial labels to the shared message.

The copy action writes the canonical post URL to the browser clipboard and gives short-lived confirmation. Share clicks and copied links are recorded as separate blog events, which lets product analysis distinguish distribution actions from link reuse.

References: src/…/page.tsx• L244-279 src/…/share-buttons.tsx• L8-20 src/…/share-buttons.tsx• L29-62 src/…/share-buttons.tsx• L64-76

Feed distribution

RSS feed

The /feed.xml document is the machine-readable distribution channel for blog updates. It identifies the blog as an RSS 2.0 channel and gives each item a title, canonical post URL, permanent identifier, excerpt, publication date, author, and category tags. Readers can subscribe through the RSS controls on the blog page, and the site metadata advertises the same feed to feed-aware clients.

The feed is a checked-in static XML document rather than a runtime route that reads posts.json. This creates a publishing boundary: adding or changing a post record updates the web routes and sitemap through their shared source, but the feed must also be kept aligned with the editorial set and dates. The current document is an example of this risk because it stops at the May 22, 2026 entry while the post records now extend through September 13, 2026.

References: public/feed.xml• L1-86 src/…/page.tsx• L86-94 src/…/page.tsx• L209-224 src/…/layout.tsx• L92-96

Search discovery

Blog detail URLs are included in the site sitemap with the post date as their last-modified value. This gives search systems a route for every known post and ties editorial freshness to the date in the post record. The blog index is also listed as a weekly-changing page, while each detail page is treated as a lower-frequency page.

References: src/…/sitemap.ts• L22-32 src/…/sitemap.ts• L56-63

Publishing flow

The publishing path moves one editorial record through the web page, sharing surface, and discovery channels. The relationship is shown below.

flowchart LR
    A[Post record] --> B[Blog index]
    A --> C[Blog detail page]
    C --> D[Social sharing and copy link]
    A --> E[Sitemap entry]
    A -. must stay aligned with .-> F[Static RSS feed item]

The record is the common input for page content and search discovery. The RSS file is the exception: it is maintained as a separate static output, so feed readers can receive stale or missing items if the two editorial sources drift.

The blog is one part of the broader content discovery system. Use Content collections and discovery pages for the parent view of how site content helps users find catalog resources. Use Categories, collections, and campaigns for the related view of category and collection landing pages that blog posts may link to.

Change checklist

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

  • Keep the post slug, detail URL, sitemap URL, and RSS link identical. A mismatch creates a broken share or discovery path.
  • Keep the post date consistent across the record, detail metadata, sitemap lastModified value, and RSS pubDate value.
  • When adding a post, add its RSS item as well. The feed is not populated automatically from the post data.
  • Preserve the excerpt as a short plain-text summary because it serves the listing, page metadata, and RSS description.
  • Keep tags valid for both the visible label set and the X hashtag conversion. Characters outside letters and numbers are removed from shared hashtags.
  • Keep post body links within the supported safe schemes so external links retain tracking and safe browsing behavior.

Important failure modes

TriggerConsequenceGuard
A post is added to posts.json but not to public/feed.xmlWebsite readers see the post, but RSS subscribers do not receive itAdd and review the matching RSS item during publication
A slug changes in only one channelDetail links, sitemap entries, RSS links, or social shares can point to different pagesTreat the slug as one public identifier across all outputs
A post body contains markup outside the supported Markdown-style formsArticle content can render as plain text or fail to display as intendedUse the body forms supported by the detail page renderer: headings, lists, tables, links, inline emphasis, and fenced code
A post body link uses an unsupported or unsafe schemeThe link is shown without its destination, or unsafe script navigation is blockedUse an http, https, mailto, site-relative, or fragment link
A post slug is not present in the shared recordsThe detail route returns not found and the route is not generatedUse a record-backed slug for every published detail URL

Key files

FileWhy to read it
src/…/posts.jsonDefines the editorial records that supply post pages, previews, tags, dates, and excerpts.
src/…/page.tsxShows how the editorial archive selects its featured post, orders the list, and exposes the feed.
src/…/page.tsxShows the canonical post route, article metadata, safe body links, supported content forms, and responsive sharing placement.
src/…/share-buttons.tsxDefines the external sharing targets, copied-link behavior, and blog sharing events.
public/feed.xmlDefines the static RSS channel and the feed items delivered to subscribers.
src/…/sitemap.tsAdds the blog index and individual post URLs to search discovery.
src/…/layout.tsxAdvertises the RSS feed as a site-wide alternate resource.