Skip to content

Commit 4facf5b

Browse files
authored
perf: allow no social links to be configured (#1494)
1 parent c5d1144 commit 4facf5b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

_includes/footer.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
"
99
>
1010
<p>
11-
{{ '©' }}
11+
{{- '©' }}
1212
<time>{{ 'now' | date: '%Y' }}</time>
13-
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
13+
14+
{% if site.social.links %}
15+
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
16+
{% else %}
17+
<em class="fst-normal">{{ site.social.name }}</em>.
18+
{% endif %}
19+
1420
{% if site.data.locales[include.lang].copyright.brief %}
1521
<span
1622
data-bs-toggle="tooltip"

_sass/addon/commons.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ footer {
144144
}
145145
}
146146

147+
em {
148+
@extend %text-highlight;
149+
}
150+
147151
p {
148152
text-align: center;
149153
margin-bottom: 0;

0 commit comments

Comments
 (0)