Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ content/community/people/
content/community/donate/
static/assets/examples/
static/processed_images/
static/assets/donor_logos/

# Tools
target/
Expand Down
2 changes: 1 addition & 1 deletion templates/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% if page.extra.image %}
{% set image_parent = page.path | replace(from="_index.md", to="") %}
<img class="link-card__img"
src="{{ image_macros::resize_image(path=image_parent ~ page.extra.image, width=580, height=326) }}"
src="{{ image_macros::resize_image(path=image_parent ~ page.extra.image, width=277, height=156) }}"
loading="lazy"
alt="An image representing the article" />
{% else %}
Expand Down
14 changes: 10 additions & 4 deletions templates/sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,27 @@ <h3 class="sponsors__amount">${{ tier.amount }} / month</h3>
<div class="sponsors__content">
{% for donor in donors_in_tier %}
{% if tier.reward_logo and donor.logo %}
{% set_global logo_height = tier.logo_height %}
{% set_global logo_height = tier.logo_height | int %}
{% if donor.square_logo %}
{% set_global logo_height = logo_height * 2.0 %}
{% set_global logo_height = (logo_height * 2.0) | int %}
{% endif %}
{% if donor.logo_scale %}
{% set_global logo_height = logo_height * donor.logo_scale %}
{% set_global logo_height = (logo_height * donor.logo_scale) | int %}
{% endif %}
{% set logo_path = "/assets/donor_logos/" ~ donor.logo %}
<a class="sponsors__link" {% if donor.link %}href="{{ donor.link }}"{% endif %}>
<img
class="sponsors__logo"
height="{{ logo_height }}"
{% if donor.style %}
style="{{ donor.style }}"
{% endif %}
src="/assets/donor_logos/{{ donor.logo }}"
{% if donor.logo is matching("\.svg$") %}
src="{{ logo_path }}"
{% else %}
{% set image = resize_image(path=logo_path, op="fit_height", height=logo_height) %}
src="{{ image.url }}"
{% endif %}
{% if donor.name %}
alt="{{ donor.name }} logo"
{% else %}
Expand Down
Loading