Use prepend for URLs

This commit is contained in:
Pat Hawks 2016-01-06 09:52:26 -08:00
parent 6115bb78e9
commit b2099b70fd
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
1 changed files with 4 additions and 4 deletions

View File

@ -49,8 +49,8 @@
{% endif %}
{% if seo_url %}
<link rel="canonical" href="{{ seo_url }}{{ page.url | replace:'/index.html','/' }}" itemprop="url" />
<meta property='og:url' content='{{ seo_url }}{{ page.url | replace:'/index.html','/' }}' />
<link rel="canonical" href="{{ page.url | prepend: seo_url | replace:'/index.html','/' }}" itemprop="url" />
<meta property='og:url' content='{{ page.url | prepend: seo_url | replace:'/index.html','/' }}' />
{% endif %}
{% if site.title %}
@ -72,10 +72,10 @@
{% if page.date %}
<meta property="og:type" content="article" />
{% if page.next.url %}
<link rel="next" href="{{ seo_url }}{{ page.next.url | replace:'/index.html','/' }}" title="{{ page.next.title | escape }}" />
<link rel="next" href="{{ page.next.url | prepend: seo_url | replace:'/index.html','/' }}" title="{{ page.next.title | escape }}" />
{% endif %}
{% if page.previous.url %}
<link rel="prev" href="{{ seo_url }}{{ page.previous.url | replace:'/index.html','/' }}" title="{{ page.previous.title | escape }}" />
<link rel="prev" href="{{ page.previous.url | prepend: seo_url | replace:'/index.html','/' }}" title="{{ page.previous.title | escape }}" />
{% endif %}
<script type="application/ld+json">
{