perf: allow no social links to be configured (#1494)

This commit is contained in:
Cotes Chung 2024-01-19 05:48:26 +08:00 committed by GitHub
parent c5d11441bc
commit 4facf5b390
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View file

@ -8,9 +8,15 @@
" "
> >
<p> <p>
{{ '©' }} {{- '©' }}
<time>{{ 'now' | date: '%Y' }}</time> <time>{{ 'now' | date: '%Y' }}</time>
{% if site.social.links %}
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>. <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 %} {% if site.data.locales[include.lang].copyright.brief %}
<span <span
data-bs-toggle="tooltip" data-bs-toggle="tooltip"

View file

@ -144,6 +144,10 @@ footer {
} }
} }
em {
@extend %text-highlight;
}
p { p {
text-align: center; text-align: center;
margin-bottom: 0; margin-bottom: 0;