mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-22 20:29:43 +00:00
Linting
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module.exports = async(name, title = "", props = {}) => {
|
||||
module.exports = async(name, title = '', props = {})=>{
|
||||
return `
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -7,7 +7,7 @@ module.exports = async(name, title = "", props = {}) => {
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700" rel="stylesheet" type="text/css" />
|
||||
<link href=${`/${name}/bundle.css`} rel='stylesheet'></link>
|
||||
<link rel="icon" href="/assets/homebrew/favicon.ico" type="image/x-icon" />
|
||||
<title>${title.length ? title + " - The Homebrewery": "The Homebrewery - NaturalCrit"}</title>
|
||||
<title>${title.length ? `${title} - The Homebrewery`: 'The Homebrewery - NaturalCrit'}</title>
|
||||
</head>
|
||||
<body>
|
||||
<main id="reactRoot">${require(`../build/${name}/ssr.js`)(props)}</main>
|
||||
|
||||
@@ -219,7 +219,7 @@ app.use((req, res) => {
|
||||
googleBrews : req.googleBrews,
|
||||
account : req.account,
|
||||
};
|
||||
templateFn('homebrew', title = req.brew ? req.brew.title : "", props)
|
||||
templateFn('homebrew', title = req.brew ? req.brew.title : '', props)
|
||||
.then((page)=>{ res.send(page); })
|
||||
.catch((err)=>{
|
||||
console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user