1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Fix the security of cross-origin destinations link.

This commit is contained in:
Cotes Chung
2020-10-27 04:11:21 +08:00
parent ad5b614304
commit 5741aa4e18
4 changed files with 6 additions and 5 deletions

View File

@@ -81,7 +81,7 @@
{% endcapture %}
{% if url != '' %}
<a href="{{ url }}" {% unless entry.noblank %}target="_blank"{% endunless %}>
<a href="{{ url }}" {% unless entry.noblank %}target="_blank" rel="noopener"{% endunless %}>
<i class="{{ entry.icon }}"></i>
</a>
{% endif %}