glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.56k stars 297 forks source link

Rss feed enhance #145

Closed ssrtw closed 4 months ago

ssrtw commented 5 months ago

Fixed an issue where RSS items without provided titles, such as those from mastodon, would not show titles in the RSS list, leading to an absence of navigable links. According to the RSS specification, it is permissible to omit a title. However, this led to a situation where titles were not displayed in the RSS widget, making it impossible to access the corresponding links.

Additionally, the logic for hide-categories and hide-description has been adjusted, so that these settings only affect the display when the style is set to detailed-list.

Before: image After: image

Example config:

pages:
  - name: Test
    columns:
      - size: full
        widgets:
          - type: rss
            limit: 10
            feeds:
              - url: https://mastodon.social/@Mastodon.rss
          - type: rss
            style: detailed-list
            limit: 10
            feeds:
              - url: https://mastodon.social/@Mastodon.rss
      - size: full
        widgets:
          - type: rss
            style: horizontal-cards-1
            limit: 10
            feeds:
              - url: https://mastodon.social/@Mastodon.rss
          - type: rss
            style: horizontal-cards-2
            limit: 10
            feeds:
              - url: https://mastodon.social/@Mastodon.rss
svilenmarkov commented 4 months ago

Thanks for contributing!