Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miniflux #313

Open
andersmmg opened this issue Jan 14, 2025 · 1 comment
Open

Miniflux #313

andersmmg opened this issue Jan 14, 2025 · 1 comment

Comments

@andersmmg
Copy link

It would be awesome if there were support for Miniflux RSS reader. It has api key auth and I think it would work well

@wiseiron4060
Copy link

I agree, but you can now do this with the Custom API widget. Here's an example for a specific category. published_at is shown as 2025-02-16T00:00:00-08:00, so it doesn't work with {{ dynamicRelativeTimeAttrs "published_at" }} to shorten it.

  - type: custom-api
    title: Miniflux
    url: https://miniflux.domain.com/v1/categories/1/entries?limit=10&order=published_at&direction=desc&category_id=1&status=unread
    headers:
      X-Auth-Token: ${MINIFLUX_TOKEN}
      Accept: application/json
    template: |
      <ul class="list list-gap-10 collapsible-container" data-collapse-after="5">
      {{ range .JSON.Array "entries" }}
        <li>
            <div class="flex gap-10 row-reverse-on-mobile thumbnail-parent">
                <div class="grow min-width-0">
                    <a href="https://miniflux.domain.com/unread/category/1/entry/{{ .String "id" }}" class="size-title-dynamic color-primary-if-not-visited" target="_blank" rel="noreferrer">{{ .String "title" }}</a>
                    <ul class="list-horizontal-text flex-nowrap text-compact">
                        <li class="shrink-0">{{ .String "feed.title" }}</li>
                        <li class="shrink-0">{{ .String "published_at" }}</li>
                        <li class="min-width-0"><a class="visited-indicator text-truncate block" href="{{ .String "url" | safeURL }}" target="_blank" rel="noreferrer" title="Link">Link</a></li>
                    </ul>
                </div>
            </div>
        </li>
      {{ end }}
      </ul>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants