zola-theme-terminimal icon indicating copy to clipboard operation
zola-theme-terminimal copied to clipboard

Feature: If RSS is enabled, show RSS icon in menu

Open vvzen opened this issue 1 month ago • 6 comments

This PR adds support for showing a tiny RSS svg badge in the top menu in case the user added a menu_item that looks like this:

menu_items = [
    {name = "home", url = "$BASE_URL"},

    # [...]

    # RSS
    {name = "", url = "$BASE_URL/$FEED_FILENAME"},
]

It also requires that the user has a config.toml that contains the following entries, and generate_feed is set to true :

generate_feed = true
feed_filename = "rss.xml"
author = "Your name here"

The icon would look like this: Screenshot 2024-06-01 at 11 51 14 AM

A live example can be seen here: https://valerioviperino.me

vvzen avatar Jun 01 '24 09:06 vvzen