mirror of
https://github.com/YGGverse/btracker.git
synced 2026-03-31 17:15:31 +00:00
append trackers to header info
This commit is contained in:
parent
8a32bdda63
commit
a47939153a
2 changed files with 13 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ pub struct Config {
|
|||
#[arg(long)]
|
||||
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)]
|
||||
pub tracker: Option<Vec<Url>>,
|
||||
|
||||
|
|
|
|||
|
|
@ -73,6 +73,15 @@
|
|||
color: #96d9a1;
|
||||
}
|
||||
|
||||
header > div {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
header > div > code:not(:last-child)::after {
|
||||
content: "|";
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
|
@ -90,6 +99,9 @@
|
|||
<a class="logo" href="/">
|
||||
<span>YGG</span>tracker
|
||||
</a>
|
||||
{% if meta.trackers %}
|
||||
<div>{% for tracker in meta.trackers %}<code>{{ tracker }}</code>{% endfor %}</div>
|
||||
{% endif %}
|
||||
</header>
|
||||
<main>
|
||||
{% block content %}{% endblock content %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue