Skip to content

Commit b2099b7

Browse files
committed
Use prepend for URLs
1 parent 6115bb7 commit b2099b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/template.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
{% endif %}
5050

5151
{% if seo_url %}
52-
<link rel="canonical" href="{{ seo_url }}{{ page.url | replace:'/index.html','/' }}" itemprop="url" />
53-
<meta property='og:url' content='{{ seo_url }}{{ page.url | replace:'/index.html','/' }}' />
52+
<link rel="canonical" href="{{ page.url | prepend: seo_url | replace:'/index.html','/' }}" itemprop="url" />
53+
<meta property='og:url' content='{{ page.url | prepend: seo_url | replace:'/index.html','/' }}' />
5454
{% endif %}
5555

5656
{% if site.title %}
@@ -72,10 +72,10 @@
7272
{% if page.date %}
7373
<meta property="og:type" content="article" />
7474
{% if page.next.url %}
75-
<link rel="next" href="{{ seo_url }}{{ page.next.url | replace:'/index.html','/' }}" title="{{ page.next.title | escape }}" />
75+
<link rel="next" href="{{ page.next.url | prepend: seo_url | replace:'/index.html','/' }}" title="{{ page.next.title | escape }}" />
7676
{% endif %}
7777
{% if page.previous.url %}
78-
<link rel="prev" href="{{ seo_url }}{{ page.previous.url | replace:'/index.html','/' }}" title="{{ page.previous.title | escape }}" />
78+
<link rel="prev" href="{{ page.previous.url | prepend: seo_url | replace:'/index.html','/' }}" title="{{ page.previous.title | escape }}" />
7979
{% endif %}
8080
<script type="application/ld+json">
8181
{

0 commit comments

Comments
 (0)