Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit c621bed

Browse files
committed
switch all canonical URLs to new domain #230
1 parent 2e73ea8 commit c621bed

File tree

1 file changed

+3
-1
lines changed
  • themes/mango-information-systems/layout/_partial

1 file changed

+3
-1
lines changed

themes/mango-information-systems/layout/_partial/head.ejs

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
canonicalURL = 'https://alef.website/tools/csv-to-json'
1313
else if( page.path.startsWith('tools/myTagOverflow/') )
1414
canonicalURL = 'https://alef.website/tools/myTagOverflow'
15+
else if( page.path.startsWith('tools/') )
16+
canonicalURL = 'https://alef.website/tools'
1517
else
16-
canonicalURL =config.url + url_for(page.path).replace( /(\/index\.html?$)|(\/?$)/, '/')
18+
canonicalURL = 'https://alef.website' + url_for(page.path).replace( /(\/index\.html?$)|(\/?$)/, '/')
1719
1820
if (is_archive())
1921
title = 'Blog'

0 commit comments

Comments
 (0)