• English
  • RSS Feed

    ModernDuang includes a built-in RSS link in the page <head>, allowing readers to subscribe to your blog updates via RSS readers.

    Prerequisites

    Before configuring RSS, make sure the url field in Hexo's main _config.yml is set to your blog domain:

    # URL
    url: https://yourblog.com

    Important: url must be your actual blog domain, otherwise the RSS feed links will contain incorrect addresses.

    Install the Plugin

    RSS feed generation requires the hexo-generator-feed plugin:

    npm install hexo-generator-feed --save

    Configuration

    Add the following at the end of your Hexo main _config.yml:

    # RSS Feed
    feed:
      type: atom
      path: atom.xml
      limit: 20
      hub:
      content: true
      content_limit: 140
      content_limit_delim: ' '
      order_by: -date
      icon: /img/avatar.png
      autodiscovery: true
      template:
    PropertyDescription
    typeFeed type, atom (recommended) or rss2
    pathFeed file path, default atom.xml
    limitMaximum number of posts in the feed
    contentWhether to include full post content
    content_limitMax characters of post content (when content: true)
    order_byPost order, -date means newest first
    iconRSS icon/avatar path
    autodiscoveryWhether to insert RSS autodiscovery link in page head

    After Enabling

    • Visit https://yourblog.com/atom.xml to access your RSS feed
    • The theme automatically inserts an RSS link in the <head>, allowing browsers and RSS readers to autodiscover your feed
    • You can configure an RSS social icon in the footer (see Social Icons)