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]