mainpage
This commit is contained in:
parent
c8f1a52b7c
commit
198847082e
|
@ -732,13 +732,9 @@ class Metadata extends WikiItem {
|
|||
}
|
||||
}
|
||||
|
||||
class MainPage extends WikiItem {
|
||||
class MainPage extends Metadata {
|
||||
constructor ( ) {
|
||||
super( '.', 'mainpage' )
|
||||
this.mimeType = 'text/plain'
|
||||
}
|
||||
basePath () {
|
||||
return 'mainpage'
|
||||
super( 'mainpage' )
|
||||
}
|
||||
async getData ( ) {
|
||||
const reply = await apiPost({
|
||||
|
|
|
@ -1409,7 +1409,7 @@ async function initialise () {
|
|||
if ( await fs.exists( dbPath )) {
|
||||
preProcessed = true
|
||||
try {
|
||||
mainPage.urlKey = 'A' + ( await fs.readFile( osPath.join( srcPath, 'mainpage' ))).toString()
|
||||
mainPage.urlKey = 'A' + ( await fs.readFile( osPath.join( srcPath, 'M', 'mainpage' ))).toString()
|
||||
} catch ( err ) {
|
||||
warning( 'mainpage error', err )
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user