Commit 1c0b1ef0448284507ec1d14ad5dd124cc591466c
Add canonical meta link to migrated pages
Shift link juice imperceptibly towards scuttlebutt.nz (ssb-handbook) as mentioned in %2UMi2xv6xrVF7yR04C3e3TEpZjHiVX7w9VJrNEIrbLo=.sha256cel committed on 3/8/2017, 10:02:04 PM
Parent: d7e8934e5ffdf07faad071a6d8dbf4922fb7dcef
Files changed
tmpl/head.part.js | changed |
tmpl/more/articles/design-challenge-avoid-centralization-and-singletons.html.js | changed |
tmpl/more/articles/design-challenge-sybil-attack.html.js | changed |
tmpl/page.part.js | changed |
tmpl/head.part.js | ||
---|---|---|
@@ -6,8 +6,9 @@ | ||
6 | 6 … | opts.title = 'Scuttlebot peer-to-peer log store' |
7 | 7 … | |
8 | 8 … | return `<head> |
9 | 9 … | <title>${opts.title}</title> |
10 … | + ${opts.canonicalUrl ? `<link rel="canonical" href="${opts.canonicalUrl}">` : ''} | |
10 | 11 … | <link rel="icon" href="/img/icon.png"> |
11 | 12 … | <link rel="stylesheet" href="/css/index.css"> |
12 | 13 … | <link rel="stylesheet" href="/css/prism.css"> |
13 | 14 … | <script src="/js/prism.js"></script> |
tmpl/more/articles/design-challenge-avoid-centralization-and-singletons.html.js | ||
---|---|---|
@@ -3,7 +3,8 @@ | ||
3 | 3 … | module.exports = () => page({ |
4 | 4 … | title: 'Design Challenge: Avoid Centralization and Singletons', |
5 | 5 … | section: 'more', |
6 | 6 … | tab: 'more-articles', |
7 … | + canonicalUrl: 'https://www.scuttlebutt.nz/stories/design-challenge-avoid-centralization-and-singletons.html', | |
7 | 8 … | path: '/more/articles/design-challenge-avoid-centralization-and-singletons.html', |
8 | 9 … | content: md.doc(__dirname+'/design-challenge-avoid-centralization-and-singletons.md') |
9 | 10 … | }) |
tmpl/more/articles/design-challenge-sybil-attack.html.js | ||
---|---|---|
@@ -3,7 +3,8 @@ | ||
3 | 3 … | module.exports = () => page({ |
4 | 4 … | title: 'Design Challenge: Sybil Attacks', |
5 | 5 … | section: 'more', |
6 | 6 … | tab: 'more-articles', |
7 … | + canonicalUrl: 'https://www.scuttlebutt.nz/stories/design-challenge-sybil-attacks.html', | |
7 | 8 … | path: '/more/articles/design-challenge-sybil-attack.html', |
8 | 9 … | content: md.doc(__dirname+'/design-challenge-sybil-attack.md') |
9 | 10 … | }) |
tmpl/page.part.js | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 … | next = `<p class="next"><a href="${opts.next[0]}">${opts.next[1]}</a></p>` |
28 | 28 … | |
29 | 29 … | // render the page |
30 | 30 … | return `<html> |
31 | - ${head({ title: opts.title })} | |
31 … | + ${head({ title: opts.title, canonicalUrl: opts.canonicalUrl })} | |
32 | 32 … | <body> |
33 | 33 … | ${hero} |
34 | 34 … | ${tabs.sections(opts.section)} |
35 | 35 … | ${tabFn(opts.tab)} |
Built with git-ssb-web