website now works

This commit is contained in:
polv committed 2020-12-16 05:00:20 +07:00
1 parent ce56fcb91c
commit 3daa9f82e7
15 files changed
+241 -137

No files matched your search

+4 -4
View File
@@ -73,7 +73,7 @@ export class MakeHTML {
.update(filename)
.digest()
.toString('hex')
.substr(8)
.substr(0, 8)
const $div = this.$(`<div id="${id}">`)
$div.html(await this.getHTML(filename))
@@ -87,10 +87,10 @@ export class MakeHTML {
return {
$: $div,
html() {
return $div.html() || ''
html: () => {
return this.$('<div>').append($div).html() || ''
},
clean() {
clean: () => {
return jieba.cutForSearch($div.text() || '').join(' ')
},
}