Skip to content
This repository was archived by the owner on Apr 16, 2022. It is now read-only.

Commit 7391c2f

Browse files
committed
fix: hide CTA when icon not defined
1 parent deb22cd commit 7391c2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

overrides/partials/source.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{% import "partials/language.html" as lang with context %}
22

3+
{% if config.theme.icon.cta %}
34
<!-- CTA button -->
45
<a
56
href="{{ config.extra.cta_url }}"
67
title="{{ lang.t('source.link.title') }}"
78
class="md-source"
89
>
910
<div class="md-source__icon md-icon">
10-
{% set icon = config.theme.icon.cta or "fontawesome/solid/plus" %} {%
11+
{% set icon = config.theme.icon.cta %} {%
1112
include ".icons/" ~ icon ~ ".svg" %}
1213
</div>
1314
<div class="md-source__repository">
1415
{{ config.extra.cta_text }}
1516
</div>
1617
</a>
18+
{% endif %}

0 commit comments

Comments
 (0)