Skip to content

Commit

Permalink
Add canonical links
Browse files Browse the repository at this point in the history
In case there are duplicate pages at different URLs, these links tell
search engines which URL is the canonical one.
  • Loading branch information
bkrl committed Dec 31, 2023
1 parent ee5e4f0 commit a0f17d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<meta property="og:image" content="{% if page.image %}{{ page.image | absolute_url }}{% else %}{{ site.image | absolute_url }}{% endif %}">
<meta name="twitter:card" content="summary_large_image">
<meta name="theme-color" content="#FFBD3F" />
<link rel="canonical" href="{% if page.canonical %}{{ page.canonical }}{% else %}{{ page.url | absolute_url }}{% endif %}" />

<!-- KaTeX -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
Expand Down

0 comments on commit a0f17d2

Please sign in to comment.