Files: 33d5cc54a0288b1a29b3ba744db7e476157f3eac / tmpl / head.part.js
595 bytesRaw
1 | module.exports = (opts) => { |
2 | opts = opts || {} |
3 | if (opts.title) |
4 | opts.title += ' - Scuttlebot' |
5 | else |
6 | opts.title = 'Scuttlebot peer-to-peer log store' |
7 | |
8 | return `<head> |
9 | <title>${opts.title}</title> |
10 | ${opts.canonicalUrl ? `<link rel="canonical" href="${opts.canonicalUrl}">` : ''} |
11 | <link rel="icon" href="/img/icon.png"> |
12 | <link rel="stylesheet" href="/css/index.css"> |
13 | <link rel="stylesheet" href="/css/prism.css"> |
14 | <script src="/js/prism.js"></script> |
15 | <script src="/js/code-examples.js"></script> |
16 | <script src="/js/table-of-contents.js"></script> |
17 | </head>` |
18 | } |
Built with git-ssb-web