2022-11-06 01:29:58 +01:00
|
|
|
<!DOCTYPE html>
|
2022-11-11 16:45:43 +01:00
|
|
|
<html lang="en">
|
2022-11-06 01:29:58 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
2022-11-13 21:11:41 +01:00
|
|
|
<title>#FediBuzz: {% if language.is_some() %}{{ language.as_ref().unwrap() }}{% else %}Trends in the Fediverse{% endif %}</title>
|
2022-11-07 21:23:55 +01:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
2022-11-14 19:41:11 +01:00
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon16.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="48x48" href="/assets/favicon48.png">
|
|
|
|
<link rel="stylesheet" title="Default" type="text/css" href="/assets/style.css?3"/>
|
2022-11-14 19:41:28 +01:00
|
|
|
|
|
|
|
<meta property="og:url" content="https://fedi.buzz/">
|
|
|
|
<meta property="og:type" content="website">
|
|
|
|
<meta property="og:title" content="FediBuzz">
|
|
|
|
<meta property="og:description" content="Trends in the Fediverse">
|
|
|
|
<meta property="og:image" content="https://fedi.buzz/favicon48.png">
|
2022-11-06 01:29:58 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
2022-11-13 21:11:41 +01:00
|
|
|
<h1>FediBuzz</h1>
|
2022-11-06 01:29:58 +01:00
|
|
|
<p>Trends in the Fediverse</p>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<h2>By language:</h2>
|
2022-11-10 02:47:09 +01:00
|
|
|
<ul class="languages">
|
2022-11-11 20:04:35 +01:00
|
|
|
<li>
|
|
|
|
{% if language == None %}
|
|
|
|
<b>any</b>
|
|
|
|
{% else %}
|
|
|
|
<a href="/">any</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
2022-11-10 02:47:09 +01:00
|
|
|
{% for l in languages[..50.min(languages.len())] %}
|
2022-11-11 20:04:35 +01:00
|
|
|
<li>
|
|
|
|
{% if language.as_ref() == Some(l) %}
|
|
|
|
<b>{{ l }}</b>
|
|
|
|
{% else %}
|
|
|
|
<a href="/in/{{ l }}">{{ l }}</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
2022-11-10 02:47:09 +01:00
|
|
|
{% endfor %}
|
2022-11-06 01:29:58 +01:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<main>
|
2022-11-14 22:44:16 +01:00
|
|
|
{% for ((_until, _period, result), title) in results.iter().zip(["Now", "Today", "This week"]) %}
|
2022-11-06 01:29:58 +01:00
|
|
|
<article>
|
|
|
|
<h2>{{ title }}</h2>
|
2022-11-11 19:55:01 +01:00
|
|
|
{% for (score, tag) in result %}
|
2022-11-06 02:20:36 +01:00
|
|
|
<section>
|
2022-11-14 22:44:16 +01:00
|
|
|
<div class="title" data-hours="{{ tag.hour_scores_data(48) }}">
|
2022-11-10 14:33:20 +01:00
|
|
|
<h3>{{ tag.spelling() }}</h3>
|
2022-11-11 16:45:43 +01:00
|
|
|
<p class="score">{{ format!("{}{:.0}%", if *score > 1. { "+" } else { "" }, 100. * *score - 100.) }}</p>
|
2022-11-10 14:33:20 +01:00
|
|
|
</div>
|
2022-11-06 23:49:17 +01:00
|
|
|
<ul class="hosts">
|
2022-11-10 14:33:20 +01:00
|
|
|
{% for (_count, host) in tag.hosts_set().into_iter().rev().take(5) %}
|
2022-11-06 02:20:36 +01:00
|
|
|
<li>
|
|
|
|
<a href="https://{{ host }}/tags/{{ tag.name }}">
|
|
|
|
{{ host }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</section>
|
2022-11-06 01:29:58 +01:00
|
|
|
{% endfor %}
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
2022-11-07 21:23:55 +01:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
<p>
|
|
|
|
made by <a href="https://chaos.social/@astro">@astro@chaos.social</a>
|
|
|
|
</p>
|
|
|
|
</footer>
|
2022-11-11 16:45:43 +01:00
|
|
|
|
|
|
|
<script type="text/javascript" src="/assets/hour_graphs.js">
|
|
|
|
</script>
|
2022-11-06 01:29:58 +01:00
|
|
|
</body>
|
|
|
|
</html>
|