hikaru-coffee
Advanced tools
Comparing version 1.9.1 to 1.9.2
// Generated by CoffeeScript 2.3.1 | ||
(function() { | ||
var Category, File, Promise, Router, Site, Tag, URL, chokidar, colors, fse, getContentType, getPathFn, getURLFn, glob, http, isCurrentPathFn, moment, parseFrontMatter, path, yaml; | ||
var Category, File, Promise, Router, Site, Tag, URL, chokidar, colors, fse, getContentType, getPathFn, getURLFn, glob, http, isCurrentPathFn, moment, packageJSON, parseFrontMatter, path, yaml; | ||
@@ -23,2 +23,4 @@ fse = require("fs-extra"); | ||
packageJSON = require("../package.json"); | ||
Promise = require("bluebird"); | ||
@@ -361,2 +363,8 @@ | ||
res = this._[this.getPath("404.html")]; | ||
if (res == null) { | ||
res = { | ||
"content": `<!DOCTYPE html>\n<html>\n <head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">\n <title>404 Not Found</title>\n </head>\n <body>\n <h1>404 Not Found</h1>\n <p>Hikaru v${packageJSON["version"]}</p>\n </body>\n</html>`, | ||
"docPath": this.getPath("404.html") | ||
}; | ||
} | ||
response.writeHead(404, { | ||
@@ -363,0 +371,0 @@ "Content-Type": getContentType(res["docPath"]) |
{ | ||
"name": "hikaru-coffee", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "A static site generator that generates routes based on directories naturally.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
146322
1835