Commit Graph

20 Commits

Author SHA1 Message Date
Siddhartha Golu 498b162a8b remove entry from feeds 2024-01-15 10:41:57 +05:30
Siddhartha 92ea928a8d copy to website after generation in script 2023-12-23 09:56:59 +05:30
Siddhartha 956ae40e6a remove some outdated feeds 2023-09-21 23:36:39 +05:30
Siddhartha 6b8eca330b feat: select 3 feeds randomly from a selected list of feeds 2023-08-03 01:09:56 +05:30
Siddhartha 9e2ae97a08 few css changes to make it work with my website 2023-06-26 01:12:06 +05:30
Drew DeVault 51c8a2e1f2 Improve licensing details
This is kind of based on the REUSE specification, but I find the spec
annoying in some respects so this is not entirely compatible with their
advice. I will pitch these alterations upstream at some point.
2021-12-21 09:30:57 +01:00
sourque 28dc22a0ff Check for empty feed title
For feeds with no title, openring places a link with no clickable
text on the byline ("via ..."). Instead, we replace the empty title
with a sensible substitute (URL.Host).

Additionally, fix an unhandled error.
2021-11-27 10:19:58 +01:00
Gianluca Arbezzano e566294050 Check for error value in url.Parse
I noticed I get a panic when running openring with http://antirez.com/rss
The panic happened because the url.Parse returned error is not assigned
to a variable.

    <antirez>
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1119fd6]

    goroutine 1 [running]:
    net/url.(*URL).ResolveReference(0xc0004c0bd0, 0x0, 0x0)
            /usr/local/Cellar/go/1.16.5/libexec/src/net/url/url.go:1075 +0x36
    main.main()
            /Users/gianarb/git/openring/openring.go:152 +0x9c

There is another problem, the URL is not valid for the url.Parse
function for some reason. But this is an issue for another day.

Signed-off-by: Gianluca Arbezzano <ciao@gianarb.it>
2021-06-25 10:24:08 -04:00
skuzzymiglet f13edb5dfd Add -S flag for specifying a file with feed URLs 2020-11-18 17:10:11 -05:00
Drew DeVault af9038b5bb Remove link to pre-compiled binary 2020-06-14 18:04:57 -04:00
Noah Loomans ec47d0b384 allow custom date formats
This adds a new datef function instead of changing date function in an
effort to keep backwards compatibility.

datef is intentionally used in the example to make it clear to the user
that it is possible to set a custom date format.
2019-12-22 18:24:05 -05:00
Haelwenn (lanodan) Monnier 6d79d2e375 Add support for resolving relative feed URLs
I think this is probably more like a bug in github.com/SlyMarbo/rss
but at least this fixes it for now
2019-07-01 09:44:21 -04:00
Drew DeVault adede4451d Update README.md 2019-06-24 19:00:37 -04:00
Philip K 143fbe7bbc Rewrote flag parsing to use flag-like interface 2019-06-23 13:53:43 -04:00
Jeff Kaufman 9a1cd340f3 style: keep articles from being horizontally compressed
In the default style for openring articles are arranged
horizontally.  This is fine with a small number of articles
or a wide screen, but can look squashed when you don't have
those.  Current behavior, on a "Galaxy S5" in Chrome Devtools:

    https://www.jefftk.com/openring-example-nowrap.png

Instead, give each article a minimum width and tell flexbox to
wrap as needed.  To maintain spacing between the articles
without adding spacing around the edges, follow the approach
described in:

    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Mastering_Wrapping_of_Flex_Items#Creating_gutters_between_items

This gives us new wrapping behavior on narrow screens, without
changing behavior on wider screens:

    https://www.jefftk.com/openring-example-wrap.png
2019-06-21 13:53:23 -04:00
Jeff Kaufman f75cc73b8b improve handling of feeds with no summary
When testing Openring with Atom feeds like http://blog.davidchudzicki.com/feeds/posts/default and http://www.givinggladly.com/feeds/posts/default I noticed it wasn't able to pull out a text snippet.  Falling back to Content if Summary is null fixes this.  Content is html encoded, however, which means that we also need an UnescapeString or else Sanitize won't remove the HTML tags.
2019-06-19 18:55:10 -04:00
Nate Dobbins 4c35eaad3b Add flag to specify number of articles per source 2019-06-17 15:02:16 -04:00
Simon Ser b0904bf2ae Fix panic when too few feeds are retrieved
panic: runtime error: slice bounds out of range

    goroutine 1 [running]:
    main.main()
    	/home/simon/src/openring/openring.go:121 +0xef4
    exit status 2
2019-06-14 13:22:35 -04:00
Drew DeVault 606f7b68d3 Update README.md 2019-06-04 10:43:22 -04:00
Drew DeVault 29a40b66cb Initial commit 2019-06-03 14:55:23 -04:00