BlakePlugin.RSS 1.0.7

dotnet add package BlakePlugin.RSS --version 1.0.7
                    
NuGet\Install-Package BlakePlugin.RSS -Version 1.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlakePlugin.RSS" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlakePlugin.RSS" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="BlakePlugin.RSS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlakePlugin.RSS --version 1.0.7
                    
#r "nuget: BlakePlugin.RSS, 1.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlakePlugin.RSS@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlakePlugin.RSS&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=BlakePlugin.RSS&version=1.0.7
                    
Install as a Cake Tool

Blake RSS Feed Plugin

A zero-configuration RSS feed generator plugin for Blake static sites.

What it does

This plugin automatically generates an RSS feed for your Blake static site. Simply add a template file, and the plugin will create a complete RSS feed (feed.xml) with all your posts, properly formatted with absolute URLs, valid dates, and metadata.

Perfect for blogs, news sites, or any content site where you want readers to subscribe to updates via RSS.

Installation

  1. Install the NuGet package in your Blake site project:

    dotnet add package BlakePlugin.RSS
    
  2. Create a feed template at wwwroot/feed.template.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
      <channel>
        <title>{{Title}}</title>
        <link>{{Link}}</link>
        <description>{{Description}}</description>
        <lastBuildDate>{{LastBuildDate}}</lastBuildDate>
    
        <Items>
          <item>
            <title>{{Item.Title}}</title>
            <link>{{Item.Link}}</link>
            <guid isPermaLink="true">{{Item.Guid}}</guid>
            <pubDate>{{Item.PubDate}}</pubDate>
            <description><![CDATA[{{Item.Description}}]]></description>
            {{Item.CategoriesXml}}
          </item>
        </Items>
      </channel>
    </rss>
    
  3. Exclude template from serving (add to your .csproj):

    <ItemGroup>
      <Content Remove="wwwroot\feed.template.xml" />
    </ItemGroup>
    
  4. Build your site:

    blake bake --rss:Link=https://yoursite.com
    
  5. (Optional) Supply any additional metadata via command line options, such as:

    blake bake --rss:Title="My Blog" --rss:Description="Latest posts about tech"
    

That's it! Your RSS feed will be generated at wwwroot/feed.xml.

Configuration

Basic placeholders

The template supports these placeholders that are automatically filled:

Feed level:

  • {{Title}} - Your site title
  • {{Link}} - Your site URL (provide with --rss:Link)
  • {{Description}} - Your site description
  • {{LastBuildDate}} - Build timestamp (auto-generated)

Post level:

  • {{Item.Title}} - Post title
  • {{Item.Link}} - Post URL (absolute)
  • {{Item.Description}} - Post description/excerpt
  • {{Item.PubDate}} - Post publication date
  • {{Item.CategoriesXml}} - Post tags as RSS categories

CLI options

You can set any placeholder value via command line:

blake bake --rss:Title="My Awesome Blog" --rss:Description="Latest posts about web development"

For custom metadata, use any placeholder name:

blake bake --rss:author="Jane Doe" --rss:language="en-us"

Content filtering and limiting:

Control which pages are included in your RSS feed:

# Ignore specific paths (no leading slash needed)
blake bake --rss:ignore-paths="pages,drafts"

# Include only specific paths  
blake bake --rss:include-paths="blog,news"

# Limit number of items (default: 20)
blake bake --rss:max-items=10

Path handling:

  • Leading slashes are automatically handled - specify pages instead of /pages
  • Trailing slashes are honored - page/ won't match /pages/
  • Multiple paths can be separated by commas or semicolons
  • ignore-paths takes precedence if both include and ignore patterns match
  • Items are automatically sorted by publication date (newest first)

Backward compatibility:

  • --rss:ignore-path (singular) still works for single path exclusions

Blake Resources

Roadmap

Post-MVP features under consideration:

  • Support for RSS extensions (iTunes podcasting, media RSS)
  • Custom feed item limits and filteringImplemented
  • Multiple feed generation (e.g., category-specific feeds)
  • RSS 2.0 extensions for enhanced metadata

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.7 145 9/1/2025
1.0.6 144 8/22/2025
1.0.5 127 8/21/2025
1.0.4 123 8/18/2025
1.0.3 133 8/18/2025
1.0.0 132 8/18/2025