diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-10 19:56:40 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-10 19:56:40 +1000 |
| commit | 6f62023574cb74036204ba57044ce8aa21a59b52 (patch) | |
| tree | 345d19ac8f64fd18a770445564fa410e70362683 /src/config | |
| parent | news: more sane default categories (diff) | |
| download | caelestia-shell-6f62023574cb74036204ba57044ce8aa21a59b52.tar.gz caelestia-shell-6f62023574cb74036204ba57044ce8aa21a59b52.tar.bz2 caelestia-shell-6f62023574cb74036204ba57044ce8aa21a59b52.zip | |
sidebar: better headlines
No tooltip, instead show title when expand
Sort articles by source priority
Also allow excluding domains and exclude google news by default (its just an aggregator so it causes lots of duplicates)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/defaults.ts | 1 | ||||
| -rw-r--r-- | src/config/types.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts index cc52a5e..9b4bf1c 100644 --- a/src/config/defaults.ts +++ b/src/config/defaults.ts @@ -175,6 +175,7 @@ export default { categories: ["business", "top", "technology", "world"], // A list of news categories to filter by languages: ["en"], // A list of languages codes to filter by domains: [] as string[], // A list of news domains to pull from, see https://newsdata.io/news-sources for available domains + excludeDomains: ["news.google.com"], // A list of news domains to exclude, e.g. bbc.co.uk timezone: "", // A timezone to filter by, e.g. "America/New_York", see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones pages: 3, // Number of pages to pull (each page is 10 articles) }, diff --git a/src/config/types.ts b/src/config/types.ts index 66e0cfe..6127e6f 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -86,6 +86,7 @@ export default { "news.categories": ARR(NEWS_CATEGORIES), "news.languages": ARR(NEWS_LANGUAGES), "news.domains": ARR(STR), + "news.excludeDomains": ARR(STR), "news.timezone": STR, "news.pages": NUM, } as { [k: string]: string | string[] | number[] }; |