forked from nkoehring/250kb-club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.html
105 lines (99 loc) · 3.23 KB
/
page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{% extends "base.html" %}
{% block content %}
<main id="member">
<h1 id="title" class="p-name dated">
{{ page.title }}
</h1>
<p class="big center">
Proud member of the exclusive 250kb club!
</p>
<p>
<time class="dt-published" datetime="{{ page.date }}" pubdate="" itemprop="datePublished" content="{{ page.date }}">
Added: {{ page.date }}
</time>
|
<time class="dt-published" datetime="{{ page.date }}" pubdate="" itemprop="datePublished" content="{{ page.date }}">
Last updated: {{ page.date }}
</time>
</p>
<p class="e-content">
<a rel="noopener nofollow" href="{{ page.extra.source }}" target="_blank">{{ page.title }}</a>
is a member of the exclusive 250kb club. The page weighs
<strong>
{% if page.extra.size == 0 %}
under 1kb
{% else %}
only {{ page.extra.size }}kb
{% endif %}
</strong> and has a content-to-bloat ratio of
<strong>{{ page.extra.ratio }}%</strong>.
</p>
<p>
They are now entitled to add one of those shiny badges to your page. But don't forget, even though I tried to make them as small as possibe, a badge will add some kilobytes to your page weight.
A code snipped can be found by clicking on the respective badge.
</p>
<p class="badges">
The badges can either be downloaded and served by yourself or linked directly from 250kb.club.
The latter might save a few users some bandwidth if the badge is already cached.
On the other hand this gives the 250kb.club server a log entry for <i>every visitor of <strong>your</strong> page</i>.
I'm not interested in those logs but you still have to trust my word. So decide for yourself.
</p>
<details>
<summary>
<img alt="simple badge, dark" src="/simple_badge_dark.png" />
(1.4kB)
</summary>
<pre><code>
<a title="250kb club page" src="https://250kb.club/{{ page.slug }}">
<img
alt="badge: proud member of the 250kb club"
src="https://250kb.club/simple_badge_dark.png"
/>
</a>
</code></pre>
</details>
<details>
<summary>
<img alt="simple badge, bright" src="/simple_badge_bright.png" />
(1.7kB)
</summary>
<pre><code>
<a title="250kb club page" src="https://250kb.club/{{ page.slug }}">
<img
alt="badge: proud member of the 250kb club"
src="https://250kb.club/simple_badge_bright.png"
/>
</a>
</code></pre>
</details>
<details>
<summary>
<img alt="color badge, bright" src="/color_badge_bright.png" />
(4.0kB)
</summary>
<pre><code>
<a title="250kb club page" src="https://250kb.club/{{ page.slug }}">
<img
alt="badge: proud member of the 250kb club"
src="https://250kb.club/color_badge_bright.png"
/>
</a>
</code></pre>
</details>
<details>
<summary>
<img alt="color badge, dark" src="/color_badge_dark.png" />
(5.7kB)
</summary>
<pre><code>
<a title="250kb club page" src="https://250kb.club/{{ page.slug }}">
<img
alt="badge: proud member of the 250kb club"
src="https://250kb.club/color_badge_dark.png"
/>
</a>
</code></pre>
</details>
<p><a href="/">back</a></p>
</main>
{% endblock content %}