Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSSP 2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laboratoire de linguistique formelle
Websites
Conferences
CSSP 2023
Commits
2542ed21
Commit
2542ed21
authored
1 year ago
by
ROULOIS Alexandre
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into 'production'
Main See merge request
!29
parents
54c42936
ebfa30ba
No related branches found
Branches containing commit
No related tags found
1 merge request
!29
Main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/index.js
+3
-2
3 additions, 2 deletions
routes/index.js
with
3 additions
and
2 deletions
routes/index.js
+
3
−
2
View file @
2542ed21
...
...
@@ -6,8 +6,9 @@ const i18next = require('i18next');
/* GET page. */
router
.
get
(
'
/:page?
'
,
(
req
,
res
,
next
)
=>
{
const
page
=
req
.
params
.
page
?
req
.
params
.
page
:
'
home
'
;
const
title
=
req
.
params
.
page
?
req
.
params
.
page
.
toUpperCase
()
:
'
HOME
'
;
/* if '.html' in filename, delete it */
const
page
=
req
.
params
.
page
?
req
.
params
.
page
.
replace
(
'
.html
'
,
''
)
:
'
home
'
;
const
title
=
req
.
params
.
page
?
req
.
params
.
page
.
toUpperCase
()
:
'
HOME
'
res
.
render
(
`
${
req
.
language
}
/
${
page
}
`
,
{
title
:
req
.
t
(
`TITLES.
${
title
}
`
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment