X-Git-Url: http://git.squeep.com/?p=urlittler;a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;fp=src%2Ftemplate%2Froot-html.js;h=c7550c5e37251cdcc072acd5680c95da6d104946;hp=65e34c73017c7500764d8339250c59823ef2966f;hb=9b51fcc5c03add770c30a242a34b3ff29bb5c904;hpb=254ea2414f0539d2ada998bb35778f4d031745ea diff --git a/src/template/root-html.js b/src/template/root-html.js index 65e34c7..c7550c5 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -1,6 +1,7 @@ 'use strict'; -module.exports = (ctx, pageTitle) => { +module.exports = (ctx, pageTitle, logoUrl) => { + const logoImg = logoUrl ? `` : ''; return ` @@ -10,21 +11,26 @@ module.exports = (ctx, pageTitle) => { - + });`) + ` +
-

${pageTitle}

+

${logoImg}${pageTitle}

` + (!ctx.createdLink ? '' : `