Skip to content

Commit

Permalink
Merge pull request #7 from jalil-salame/social-rel
Browse files Browse the repository at this point in the history
Add rel attribute to social media links
  • Loading branch information
oltdaniel authored May 7, 2023
2 parents 1bf9a27 + bf18f33 commit 5f40275
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,20 @@
{% endblock content %}
<footer>
<hr text="&copy; Copyright {{ now() | date(format='%Y') }}" />
{% if config.extra.social_media and config.extra.social_media | length > 0 %}
<div class="footer-social-media">
<a onclick="toggle_prefers_color()">Toggle Theme</a>
{% for social in config.extra.social_media %}
<a href="{{ social.url | safe }}" target="_blank">{{ social.name }}</a>
{% if social.rel %}
<a href="{{ social.url | safe }}" rel="{{ social.rel }}" target="_blank">{{ social.name }}</a>
{% else %}
<a href="{{ social.url | safe }}" target="_blank">{{ social.name }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %}
</footer>
</body>

{% block js %}
<script src="{{ get_url(path='js/script.js', trailing_slash=false) | safe }}"/></script>
{% endblock js %}
</html>
</html>

0 comments on commit 5f40275

Please # to comment.