Skip to content

Commit

Permalink
add comment explaining backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonccox committed Apr 1, 2020
1 parent 8ae2274 commit 45deaad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/partials/logo.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
{% set logo_img = "" %}
{% if logo %}
{% set logo_img = media['image://webfolio/' ~ (logo|first).name] %}

{# check theme images dir for backwards compatibility with v1.0.0 #}
{% if not logo_img %}
{% set logo_img = media['theme://images/' ~ (logo|first).name] %}
{% endif %}
Expand All @@ -12,4 +14,4 @@

<a href="{{ home_url }}">
{{ logo_img.html('', config.site.title, 'logo__img')|raw }}
</a>
</a>

0 comments on commit 45deaad

Please sign in to comment.