fix lint bug
[squeep-html-template-helper] / lib / template-helper.js
index 2a218f88020c3542a5bc24dffe849293f748c76b..7e51bcfbb9058a25287bf934978d9234b368bf80 100644 (file)
@@ -15,7 +15,7 @@ const { lazy } = require('@squeep/lazy-property');
 const initContext = (ctx) => {
   ctx.errors = [];
   ctx.notifications = [];
-}
+};
 
 /**
  * Some fields may have values outside normal dates, handle them here.
@@ -100,7 +100,7 @@ const timeElement = (date, options = {}) => {
     dateFormat(date, pInf, nInf, otherwise),
     '</time>',
   ].join('');
-}
+};
 
 
 /**
@@ -118,7 +118,7 @@ const secondsToPeriod = (seconds) => {
       result.push(`${r} ${label}${r != 1 ? 's' : ''}`);
     }
     value = factor ? Math.floor(value / factor) : value;
-  }
+  };
 
   nextResult(60, 'second');
   nextResult(60, 'minute');
@@ -160,8 +160,8 @@ function htmlHead(pagePathLevel, ctx, options) {
   return `\t<head>
 \t\t<meta charset="utf-8">
 \t\t<meta name="viewport" content="width=device-width,initial-scale=1">
-\t\t<link rel="stylesheet" href="${rootPathPfx}static/theme.css" title="Default">
-\t\t<link rel="stylesheet" href="${rootPathPfx}static/custom.css" title="Site Specific">
+\t\t<link rel="stylesheet" href="${rootPathPfx}static/theme.css">
+\t\t<link rel="stylesheet" href="${rootPathPfx}static/custom.css">
 ${headElements.map((e) => '\t\t' + e).join('\n')}
 \t\t<title>${pageTitle}</title>
 \t</head>`;