Skip to content

Commit

Permalink
Add support for canonical links
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Jul 6, 2024
1 parent 6939ee6 commit e0e8162
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions misago/templates/misago/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
{% else %}
<link rel="shortcut icon" href="{% static 'misago/favicon.ico' %}" />
{% endif %}
{% if canonical_link %}
<link rel="canonical" href="{{ settings.forum_address }}{{ canonical_link }}" />
{% endif %}
{% endspaceless %}
<script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"{{ settings.forum_address }}"}</script>
<script type="text/javascript">
Expand Down

0 comments on commit e0e8162

Please sign in to comment.