@nasriya/hypercloud
Version:
Nasriya HyperCloud is a lightweight Node.js HTTP2 framework.
36 lines (35 loc) • 1.36 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const hypercloud_1 = require("../../../hypercloud");
const path_1 = __importDefault(require("path"));
const page = new hypercloud_1.Page('hypercloud_404');
page.template.path.set(path_1.default.resolve(__dirname, 'hypercloud_404.ejs'));
page.stylesheets.link.internal(path_1.default.resolve(__dirname, 'style.css'));
page.title.multilingual.set({
default: 'Not Found 404',
en: 'Not Found 404',
ar: 'غير موجود 404'
});
page.description.multilingual.set({
default: 'The page or resource was not found',
en: 'The page or resource was not found',
ar: 'لم يتم العثور على الصفحة المطلوبة'
});
const defaultLocals = {
title: '404 - Page Not Found',
subtitle: 'Oops. Looks like you took a wrong turn.',
homeBtnLabel: 'HOME'
};
page.locals.multilingual.set({
default: defaultLocals,
en: defaultLocals,
ar: {
title: 'غير موجود - 404', // The page title in browsers,
subtitle: 'لم يتم العثور على هذه الصفحة', // The page title to render for visitors
homeBtnLabel: 'الرئيسية'
}
});
exports.default = page;