feat: add noopener ref to link

This commit is contained in:
st1020 2023-10-23 21:13:44 +08:00
parent d3cb5d6025
commit de388f6d83
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@
> >
{% if config.extra.footer.license %} |<!----> {% if config.extra.footer.license %} |<!---->
{% if config.extra.footer.license_url %}<!----> {% if config.extra.footer.license_url %}<!---->
<a class="link" href="{{ config.extra.footer.license_url }}"> <a class="link" href="{{ config.extra.footer.license_url }}" rel="noopener" target="_blank">
{{ config.extra.footer.license }} {{ config.extra.footer.license }}
</a> </a>
{% else %}<!----> {% else %}<!---->

View file

@ -21,6 +21,7 @@
<a <a
class="underline" class="underline"
href="{{ link.url | replace(from=`$BASE_URL`, to=config.base_url) | safe }}" href="{{ link.url | replace(from=`$BASE_URL`, to=config.base_url) | safe }}"
rel="noopener"
target="_blank" target="_blank"
>{{ link.name }}</a >{{ link.name }}</a
> >