website now works
This commit is contained in:
1 parent
ce56fcb91c
commit
3daa9f82e7
15 files changed
+241
-137
No files matched your search
@@ -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(' ')
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user