change hbs & glob path
This commit is contained in:
		
							parent
							
								
									edc6a9f401
								
							
						
					
					
						commit
						e661a0f9a3
					
				| @ -1,5 +1,5 @@ | ||||
| const path = require('path'); | ||||
| const hbs = require(path.resolve('node_modules', 'hbs')); | ||||
| const hbs = require('hbs'); | ||||
| 
 | ||||
| const registerPartialsWithExtensions = require('./utils/registerPartialsWithExtensions'); | ||||
| 
 | ||||
|  | ||||
| @ -3,6 +3,7 @@ | ||||
| 
 | ||||
| <head> | ||||
|   {{>"partials/header.hbs"}} | ||||
|   <title>{{ pageTitle }}</title> | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
|  | ||||
| @ -3,6 +3,7 @@ | ||||
| 
 | ||||
| <head> | ||||
|   {{>"partials/header.hbs"}} | ||||
|   <title>{{ pageTitle }}</title> | ||||
| </head> | ||||
| 
 | ||||
| <body> | ||||
|  | ||||
| @ -3,4 +3,3 @@ | ||||
| rel="stylesheet" /> | ||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||||
| <title>{{ pageTitle }}</title> | ||||
| @ -1,7 +1,7 @@ | ||||
| const fs = require('fs'); | ||||
| const path = require('path'); | ||||
| 
 | ||||
| const glob = require(path.resolve('node_modules', 'glob')); | ||||
| const glob = require('glob'); | ||||
| 
 | ||||
| module.exports = (hbs, rootDir) => { | ||||
|     glob | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user