Commit 83c65ed0 by Peter Serwylo

Don't embed f-droid logo SVG in each page. Reference from <img> instead.

The .svg is 23KiB large, which adds quite a lot once you add up how many pages are output for our Jekyll site. Each of the 2000 package pages is only about 50KiB at most, so adding 23KiB to > 2000 .html files results in almost 100MiB of space, just for the header image. By moving from including the svg source via Jekyll to using an <img> tag, we save about 100MiB for free, and the browser will still cache the .svg just fine.
parent 9bea6df8
<header class="site-header">
<a class="site-title" href="{{ site.baseurl }}/">
{% include fdroid-logo.svg %}
<img src="{{ site.baseurl }}/assets/fdroid-logo.svg" />
<h1>{{ site.header-title }}</h1>
</a>
......
......@@ -27,7 +27,7 @@ body {
text-decoration: none;
}
svg {
img {
margin: $spacing-unit * 2 / 3;
width: $spacing-unit * 3;
height: $spacing-unit * 3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment