Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to Pull Your Hashnode Blog Into Your Portfolio (No Paid API Needed) 🚀

说明与用途

通过 RSS 订阅将 Hashnode 文章拉入个人网站,使用 fast-xml-parser 解析并服务器端渲染,提升 SEO。

问题

Integrating Hashnode blog posts into a personal portfolio site without paying for the GraphQL API.

结果

A lightweight, free solution that pulls Hashnode posts into a portfolio, improving content visibility and SEO without extra costs.

工作流

  • Fetch the RSS feed from https://<subdomain>.hashnode.dev/rss.xml
  • Parse XML using fast-xml-parser, unwrapping CDATA
  • Map items to typed post objects (title, slug, publishedAt, brief, coverImage, tags, html)
  • Estimate read time by word count in HTML
  • Wrap fetching logic in a getBlogPosts service function
  • Render posts server‑side for SEO

证据

Every Hashnode publication ships a free, public RSS feed

来源

  • 记录日期: 2026-09-09T13:30:20.596Z