Open external links in a new window

This commit is contained in:
Maël Brunet 2021-05-30 11:34:29 +02:00
parent eae9e806b3
commit e2c932b1e4
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
<p>Made with <a href="https://github.com/maeligg/my-online-cookbook">My Online Cookbook</a></p> <p>Made with <a href="https://github.com/maeligg/my-online-cookbook" target="_blank" rel="noopener">My Online Cookbook</a></p>
<p>© {{ site.author }} {% year %}</p> <p>© {{ site.author }} {% year %}</p>

View file

@ -56,7 +56,7 @@
<div class="c-recipe__instructions-wrapper u-free-text"> <div class="c-recipe__instructions-wrapper u-free-text">
{% if sourceLabel and sourceURL %} {% if sourceLabel and sourceURL %}
<p>Source : <a href="{{ sourceURL }}">{{ sourceLabel }}</a></p> <p>Source : <a href="{{ sourceURL }}" target="_blank" rel="noopener">{{ sourceLabel }}</a></p>
{% endif %} {% endif %}
{{ content | safe }} {{ content | safe }}
</div> </div>