git ssb

2+

cel / scuttlebot.io



Commit 1c0b1ef0448284507ec1d14ad5dd124cc591466c

Add canonical meta link to migrated pages

Shift link juice imperceptibly towards scuttlebutt.nz (ssb-handbook)
as mentioned in %2UMi2xv6xrVF7yR04C3e3TEpZjHiVX7w9VJrNEIrbLo=.sha256
cel committed on 3/8/2017, 10:02:04 PM
Parent: d7e8934e5ffdf07faad071a6d8dbf4922fb7dcef

Files changed

tmpl/head.part.jschanged
tmpl/more/articles/design-challenge-avoid-centralization-and-singletons.html.jschanged
tmpl/more/articles/design-challenge-sybil-attack.html.jschanged
tmpl/page.part.jschanged
tmpl/head.part.jsView
@@ -6,8 +6,9 @@
66 opts.title = 'Scuttlebot peer-to-peer log store'
77
88 return `<head>
99 <title>${opts.title}</title>
10 + ${opts.canonicalUrl ? `<link rel="canonical" href="${opts.canonicalUrl}">` : ''}
1011 <link rel="icon" href="/img/icon.png">
1112 <link rel="stylesheet" href="/css/index.css">
1213 <link rel="stylesheet" href="/css/prism.css">
1314 <script src="/js/prism.js"></script>
tmpl/more/articles/design-challenge-avoid-centralization-and-singletons.html.jsView
@@ -3,7 +3,8 @@
33 module.exports = () => page({
44 title: 'Design Challenge: Avoid Centralization and Singletons',
55 section: 'more',
66 tab: 'more-articles',
7 + canonicalUrl: 'https://www.scuttlebutt.nz/stories/design-challenge-avoid-centralization-and-singletons.html',
78 path: '/more/articles/design-challenge-avoid-centralization-and-singletons.html',
89 content: md.doc(__dirname+'/design-challenge-avoid-centralization-and-singletons.md')
910 })
tmpl/more/articles/design-challenge-sybil-attack.html.jsView
@@ -3,7 +3,8 @@
33 module.exports = () => page({
44 title: 'Design Challenge: Sybil Attacks',
55 section: 'more',
66 tab: 'more-articles',
7 + canonicalUrl: 'https://www.scuttlebutt.nz/stories/design-challenge-sybil-attacks.html',
78 path: '/more/articles/design-challenge-sybil-attack.html',
89 content: md.doc(__dirname+'/design-challenge-sybil-attack.md')
910 })
tmpl/page.part.jsView
@@ -27,9 +27,9 @@
2727 next = `<p class="next"><a href="${opts.next[0]}">${opts.next[1]}</a></p>`
2828
2929 // render the page
3030 return `<html>
31- ${head({ title: opts.title })}
31 + ${head({ title: opts.title, canonicalUrl: opts.canonicalUrl })}
3232 <body>
3333 ${hero}
3434 ${tabs.sections(opts.section)}
3535 ${tabFn(opts.tab)}

Built with git-ssb-web