Skip to content

Commit

Permalink
perf: allow no social links to be configured (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 authored Jan 18, 2024
1 parent c5d1144 commit 4facf5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@
"
>
<p>
{{ '©' }}
{{- '©' }}
<time>{{ 'now' | date: '%Y' }}</time>
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.

{% if site.social.links %}
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
{% else %}
<em class="fst-normal">{{ site.social.name }}</em>.
{% endif %}

{% if site.data.locales[include.lang].copyright.brief %}
<span
data-bs-toggle="tooltip"
Expand Down
4 changes: 4 additions & 0 deletions _sass/addon/commons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ footer {
}
}

em {
@extend %text-highlight;
}

p {
text-align: center;
margin-bottom: 0;
Expand Down

0 comments on commit 4facf5b

Please sign in to comment.