mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Add index page
This commit is contained in:
parent
522c3e5ad8
commit
f932c7ce38
2 changed files with 16 additions and 0 deletions
9
src/web/about/pages/index.pug
Normal file
9
src/web/about/pages/index.pug
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
extend ../base
|
||||||
|
|
||||||
|
block title
|
||||||
|
| About Misskey
|
||||||
|
|
||||||
|
block content
|
||||||
|
h1 About Misskey
|
||||||
|
|
||||||
|
p 誰か書いて
|
|
@ -63,6 +63,13 @@ app.use('/@/about/resources', express.static(`${__dirname}/about/resources`, {
|
||||||
maxAge: ms('7 days')
|
maxAge: ms('7 days')
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
app.get('/@/about/', (req, res) => {
|
||||||
|
res.render(`${__dirname}/about/pages/index`, {
|
||||||
|
path: 'index',
|
||||||
|
config: config
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
app.get('/@/about/:page(*)', (req, res) => {
|
app.get('/@/about/:page(*)', (req, res) => {
|
||||||
res.render(`${__dirname}/about/pages/${req.params.page}`, {
|
res.render(`${__dirname}/about/pages/${req.params.page}`, {
|
||||||
path: req.params.page,
|
path: req.params.page,
|
||||||
|
|
Loading…
Reference in a new issue