append trackers to header info

This commit is contained in:
yggverse 2025-08-05 13:35:51 +03:00
parent 8a32bdda63
commit a47939153a
2 changed files with 13 additions and 1 deletions

View file

@ -36,7 +36,7 @@ pub struct Config {
#[arg(long)] #[arg(long)]
pub stats: Option<Url>, pub stats: Option<Url>,
/// Appends following tracker(s) to the magnet links /// Display following tracker(s) in the header, append also to the magnet links
#[arg(long)] #[arg(long)]
pub tracker: Option<Vec<Url>>, pub tracker: Option<Vec<Url>>,

View file

@ -73,6 +73,15 @@
color: #96d9a1; color: #96d9a1;
} }
header > div {
margin: 16px 0;
}
header > div > code:not(:last-child)::after {
content: "|";
margin: 0 6px;
}
main { main {
margin: 0 auto; margin: 0 auto;
} }
@ -90,6 +99,9 @@
<a class="logo" href="/"> <a class="logo" href="/">
<span>YGG</span>tracker <span>YGG</span>tracker
</a> </a>
{% if meta.trackers %}
<div>{% for tracker in meta.trackers %}<code>{{ tracker }}</code>{% endfor %}</div>
{% endif %}
</header> </header>
<main> <main>
{% block content %}{% endblock content %} {% block content %}{% endblock content %}