Merge branch 'hotfix/6.2.2'

This commit is contained in:
Cotes Chung 2023-09-11 02:32:36 +08:00
commit ac4b402f97
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
2 changed files with 34 additions and 36 deletions

View File

@ -59,48 +59,46 @@
{% endif %} {% endif %}
{% endunless %} {% endunless %}
<address class="d-flex mb-0"> {% for entry in site.data.contact %}
{% for entry in site.data.contact %} {% case entry.type %}
{% case entry.type %} {% when 'github', 'twitter' %}
{% when 'github', 'twitter' %} {%- capture url -%}
{%- capture url -%}
https://{{ entry.type }}.com/{{ site[entry.type].username }} https://{{ entry.type }}.com/{{ site[entry.type].username }}
{%- endcapture -%} {%- endcapture -%}
{% when 'email' %} {% when 'email' %}
{% assign email = site.social.email | split: '@' %} {% assign email = site.social.email | split: '@' %}
{%- capture url -%} {%- capture url -%}
javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@') javascript:location.href = 'mailto:' + ['{{ email[0] }}','{{ email[1] }}'].join('@')
{%- endcapture -%} {%- endcapture -%}
{% when 'rss' %} {% when 'rss' %}
{% assign url = '/feed.xml' | relative_url %} {% assign url = '/feed.xml' | relative_url %}
{% else %} {% else %}
{% assign url = entry.url %} {% assign url = entry.url %}
{% endcase %} {% endcase %}
{% if url %} {% if url %}
<a <a
href="{{ url }}" href="{{ url }}"
aria-label="{{ entry.type }}" aria-label="{{ entry.type }}"
{% assign link_types = '' %} {% assign link_types = '' %}
{% unless entry.noblank %} {% unless entry.noblank %}
target="_blank" target="_blank"
{% assign link_types = 'noopener noreferrer' %} {% assign link_types = 'noopener noreferrer' %}
{% endunless %} {% endunless %}
{% if entry.type == 'mastodon' %} {% if entry.type == 'mastodon' %}
{% assign link_types = link_types | append: ' me' | strip %} {% assign link_types = link_types | append: ' me' | strip %}
{% endif %} {% endif %}
{% unless link_types == empty %} {% unless link_types == empty %}
rel="{{ link_types }}" rel="{{ link_types }}"
{% endunless %} {% endunless %}
> >
<i class="{{ entry.icon }}"></i> <i class="{{ entry.icon }}"></i>
</a> </a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</address>
</div> </div>
<!-- .sidebar-bottom --> <!-- .sidebar-bottom -->
</aside> </aside>

View File

@ -830,8 +830,8 @@ $btn-mb: 0.5rem;
} }
.sidebar-bottom { .sidebar-bottom {
@include pl-pr(2rem); padding-left: 2rem;
padding-right: 1rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
%button { %button {