Skip to content

Commit

Permalink
fix: surround embedding of custom stylesheet with if statement
Browse files Browse the repository at this point in the history
We only include the stylesheet if the variable is set - otherwise we
always have two hits to the page itself.
  • Loading branch information
b1rger committed Oct 19, 2023
1 parent 8c74d97 commit 7c95505
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apis_core/apis_metainfo/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
{% include "apis_entities/apis_templatetag.html" %}
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:400,500"
rel="stylesheet" />
<link rel="stylesheet" href="{{ PROJECT_CSS }}?rnd=1" rel="stylesheet" />

{% if PROJECT_CSS %}<link rel="stylesheet" href="{{ PROJECT_CSS }}?rnd=1" rel="stylesheet" />{% endif %}

<link rel="stylesheet"
href="{% shared_url %}apis/libraries/scroll-to-top/css/ap-scroll-top.min.css" />

Expand Down

0 comments on commit 7c95505

Please sign in to comment.