Compare commits
3 commits
32f8335214
...
38096d90b5
Author | SHA1 | Date | |
---|---|---|---|
38096d90b5 | |||
c8c83a012b | |||
94431c7178 |
6 changed files with 89 additions and 6 deletions
|
@ -9,8 +9,8 @@ compile_sass = false
|
|||
# Whether to build a search index to be used later on by a JavaScript library
|
||||
build_search_index = false
|
||||
|
||||
generate_feed = true
|
||||
feed_filename = "index.xml"
|
||||
generate_feeds = true
|
||||
feed_filenames = ["index.xml"]
|
||||
|
||||
theme = "juice"
|
||||
|
||||
|
@ -30,6 +30,7 @@ juice_logo_name = "RSS Please"
|
|||
juice_logo_path = "feed-icon.svg"
|
||||
juice_extra_menu = [
|
||||
{ title = "News", link = "/news/"},
|
||||
{ title = "Sponsor", link = "https://github.com/sponsors/wezm"},
|
||||
{ title = "GitHub", link = "https://github.com/wezm/rsspls"},
|
||||
]
|
||||
repository_url = "https://github.com/wezm/rsspls"
|
||||
|
|
|
@ -183,6 +183,11 @@ Optional output directory to write the feeds to. If not specified it must be
|
|||
supplied via the `--output` command line option. Directory will be created if
|
||||
it does not exist.
|
||||
|
||||
Tilde expansion is performed on the path in the config file. This allows you to
|
||||
refer to the home directory of the user running `rsspls`. For example,
|
||||
`~/Documents/rsspls` could be used to place the output in your `Documents`
|
||||
folder.
|
||||
|
||||
### proxy
|
||||
|
||||
Optional proxy address. If specified, all requests will be routed through it.
|
||||
|
@ -235,7 +240,20 @@ recommended to specify the `link` selector explicitly.
|
|||
|
||||
### feed.config.summary
|
||||
|
||||
Optional CSS selector relative to `item` that will supply the content of the RSS item.
|
||||
Optional CSS selector relative to `item` that will supply the content of the
|
||||
RSS item. This value may be a single CSS selector, or an array of CSS
|
||||
selectors.
|
||||
|
||||
The CSS selectors may also include a comma separated list of elements to match.
|
||||
For example: `summary = "p, blockquote"` will match `p` or `blockquote`
|
||||
elements, adding them to the RSS feed in the order then are encountered in the
|
||||
HTML document.
|
||||
|
||||
The array form of `summary` allows the order of the matched elements to be
|
||||
controlled, enabling elements to be added to the feed in a different order to
|
||||
the source HTML document. For example, `summary = ["p", "blockquote"]` causes
|
||||
`rsspls` to make a pass over the source HTML document, adding `p` elements to
|
||||
the feed, followed by a pass adding `blockquote` elements to the feed.
|
||||
|
||||
### feed.config.date
|
||||
|
||||
|
|
43
content/news/release-0.9.0.md
Normal file
43
content/news/release-0.9.0.md
Normal file
|
@ -0,0 +1,43 @@
|
|||
+++
|
||||
title = "Version 0.9.0 released"
|
||||
date = 2024-07-08T13:53:46+10:00
|
||||
|
||||
#[extra]
|
||||
#updated = 2024-02-20T22:57:15+10:00
|
||||
+++
|
||||
|
||||
The 0.9.0 release has been published. The summary selector now supports matching
|
||||
multiple elements, tilde expansion is performed on the output path, and more.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
## Version 0.9.0
|
||||
|
||||
[This release][release] adds support for matching multiple elements in the
|
||||
`feed.config.summary` selector. These may be specified comma separated like `p,
|
||||
blockquote`, or as an array like `["p", "blockquote"]`. The array form allows
|
||||
the order the elements are added to the generated feed to be controlled. See
|
||||
[the documentation for more details](@/documentation.md#feed-config-summary).
|
||||
|
||||
Tilde expansion is now performed on the `output` path in the configuration file. This
|
||||
allows a path like `~/Documents/rsspls` to be specified in order to output into the
|
||||
`Documents` folder of the user running `rsspls`.
|
||||
|
||||
The page caches will now be invalidated if the configuration is changed. This way
|
||||
feeds will always be regenerated when the config file is edited. Previously they
|
||||
would only be regenerated when the source HTML changed.
|
||||
|
||||
It's now possible to build `rsspls` using the native TLS library of the
|
||||
platform instead of `rustls`. This is particularly handy on Windows ARM where
|
||||
building the `ring` dependency of `rustls` currently [requires having `clang`
|
||||
installed][ring]. To build with `native-tls` do the following:
|
||||
|
||||
cargo build --release --locked --no-default-features --features native-tls
|
||||
|
||||
[Full Changelog](https://github.com/wezm/rsspls/compare/0.8.1...0.9.0)
|
||||
|
||||
If you find `rsspls` useful you can [sponsor me on GitHub][sponsor].
|
||||
|
||||
[release]: https://github.com/wezm/rsspls/releases/tag/0.9.0
|
||||
[sponsor]: https://github.com/sponsors/wezm
|
||||
[ring]: https://github.com/briansmith/ring/blob/7c0024abaf4fd59250c9b79cc41a029aa0ef3497/BUILDING.md
|
|
@ -100,6 +100,10 @@ footer a:hover {
|
|||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
@media screen and (max-width: 950px) {
|
||||
.nav-item {
|
||||
display: inline-block;
|
||||
margin: 0.5em 5px;
|
||||
}
|
||||
.hero {
|
||||
flex-direction: column;
|
||||
padding-top: 100px;
|
||||
|
@ -111,8 +115,26 @@ footer a:hover {
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.nav-item {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 40px 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 450px) {
|
||||
header.pos-absolute {
|
||||
position: relative;
|
||||
background-color: var(--primary-color);
|
||||
}
|
||||
.hero-image {
|
||||
width: 222px;
|
||||
}
|
||||
nav {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,7 +70,6 @@ header {
|
|||
justify-content: space-evenly;
|
||||
height: 100vh;
|
||||
background-color: var(--primary-color);
|
||||
overflow-x: hidden;
|
||||
padding: 0 40px;
|
||||
|
||||
.explore-more {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<body>
|
||||
{% block header %}
|
||||
|
||||
<header class="pos-absolute" style="background-color: transparent">
|
||||
<header class="pos-absolute">
|
||||
{{ macros::render_header() }}
|
||||
</header>
|
||||
|
||||
|
|
Loading…
Reference in a new issue