Skip to content

Commit

Permalink
tools canonical setup #230
Browse files Browse the repository at this point in the history
* correct csv-to-json canonical override
* add myTagOverflow override
  • Loading branch information
mef committed Apr 30, 2023
1 parent 12e32c9 commit 2e73ea8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/mango-information-systems/layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
if( page.path.startsWith('blog/') )
canonicalURL = 'https://alef.website' + url_for(page.path).replace('blog/', 'blog/archive/').replace( /(\/index\.html?$)|(\/?$)/, '')
else if( page.path === 'tools/csv-to-json/index.html' )
else if( page.path.startsWith('tools/csv-to-json/') )
canonicalURL = 'https://alef.website/tools/csv-to-json'
else if( page.path.startsWith('tools/myTagOverflow/') )
canonicalURL = 'https://alef.website/tools/myTagOverflow'
else
canonicalURL =config.url + url_for(page.path).replace( /(\/index\.html?$)|(\/?$)/, '/')
Expand Down

0 comments on commit 2e73ea8

Please sign in to comment.