openring rs
1.0.0
openring-rs是一個用於從 Atom/RSS 來源產生網路環的工具,因此您可以使用這些來源中的文章填充範本並將它們嵌入到您自己的部落格中。 in.html中提供了範例模板。
這是 Drew DeVault 的 openring 的 Rust 移植版,主要區別在於:
--cache時尊重限制並發送條件請求(推薦!)--before過濾提要要查看此操作的實際效果,您可以查看此部落格文章的頁腳。
https://luke.hsiao.dev/blog/openring-rs/
cargo install --locked openring
A webring for static site generators written in Rust
Usage: openring [OPTIONS] --template-file <FILE>
Options:
-n, --num-articles <NUM_ARTICLES> Total number of articles to fetch [default: 3]
-p, --per-source <PER_SOURCE> Number of most recent articles to get from each feed [default: 1]
-S, --url-file <FILE> File with URLs of Atom/RSS feeds to read (one URL per line, lines starting with '#' or "//" are ignored)
-t, --template-file <FILE> Tera template file
-s, --url <URL> A single URL to consider (can be repeated to specify multiple)
-b, --before <BEFORE> Only include articles before this date (in YYYY-MM-DD format)
-c, --cache Use request cache stored on disk at `.openringcache`
--max-cache-age <MAX_CACHE_AGE> Discard all cached requests older than this duration [default: 14d]
-v, --verbose... Increase logging verbosity
-q, --quiet... Decrease logging verbosity
-h, --help Print help (see more with '--help')
-V, --version Print version
openring-rs支援的範本是使用 Tera 編寫的。有關詳細信息,請參閱 Tera 文件。
只是為了好玩。