Skip to content

Commit a5dca93

Browse files
committed
feat: add a canonical tag by default
1 parent 1f6244c commit a5dca93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/theme/index.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
<!-- Custom HTML head -->
1616
{{> head}}
1717

18+
{{#if (eq slug "title-page") }}
19+
<link rel="canonical" href="{{ base_url }}/" />
20+
{{else}}
21+
<link rel="canonical" href="{{ base_url }}/{{ slug }}" />
22+
{{/if}}
23+
1824
<meta name="description" content="{{ description }}">
1925
<meta name="viewport" content="width=device-width, initial-scale=1">
2026
<meta name="theme-color" content="#ffffff">

0 commit comments

Comments
 (0)