From 8238f0a532da2727be177db70762509f34c5dc63 Mon Sep 17 00:00:00 2001 From: Alex van de Sandt Date: Wed, 22 Jul 2026 13:24:04 -0500 Subject: [PATCH] Shrink linkedin icon --- .gitignore | 2 ++ templates/index.html | 9 ++++++++- zola.toml | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3abf8d1..8356e25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ public/ + static/*.pdf +static/processed_images/ diff --git a/templates/index.html b/templates/index.html index b9841b6..66e7ce2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -8,7 +8,14 @@ {% for social in config.extra.socials %}
- Visit my {{social.alt}} profile + {% if social.icon is ending_with(".svg") %} + {% set icon_url = social.icon %} + {% else %} + {% set icon = resize_image(path = social.icon, width = 32, height = 32, op = "fit") %} + {% set icon_url = icon.url %} + {% endif %} + + Visit my {{social.alt}} profile
{% endfor %} diff --git a/zola.toml b/zola.toml index 322f29b..cc9a450 100644 --- a/zola.toml +++ b/zola.toml @@ -7,6 +7,8 @@ compile_sass = true # Whether to build a search index to be used later on by a JavaScript library build_search_index = false +ignored_static = ["linkedin.png"] + [markdown] [markdown.highlighting] -- 2.51.2