feat(error): add link to website
This commit is contained in:
parent
56c0fed144
commit
94aec140a8
4 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
"aowowUrl": "https://wotlkdb.com",
|
||||
"websiteUrl": "https://mywebsite.com",
|
||||
"websiteName": "My Website",
|
||||
"loadDbcs": true,
|
||||
"hideGameMasters": true,
|
||||
"realms": [
|
||||
|
|
|
|||
|
|
@ -75,6 +75,8 @@ export class Armory {
|
|||
|
||||
this.logger.info("Starting server...");
|
||||
app.locals.aowow = this.config.aowowUrl;
|
||||
app.locals.websiteUrl = this.config.websiteUrl;
|
||||
app.locals.websiteName = this.config.websiteName;
|
||||
app.engine(".html", handlebarsEngine({
|
||||
extname: "html",
|
||||
partialsDir: path.join(process.cwd(), "static", "partials"),
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ export interface IRealmConfig {
|
|||
|
||||
export class Config {
|
||||
public aowowUrl: string;
|
||||
public websiteUrl: string;
|
||||
public websiteName: string;
|
||||
public loadDbcs: boolean;
|
||||
public hideGameMasters: boolean;
|
||||
public realms: IRealmConfig[];
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<br>
|
||||
<a class="button is-info" href="/">Back to Armory</a>
|
||||
<a class="button is-info">Homepage</a>
|
||||
<a class="button is-info" href="{{websiteUrl}}" target="_parent">{{websiteName}} Homepage</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue