diff --git a/app.js b/app.js index 700e28c..7b67f54 100644 --- a/app.js +++ b/app.js @@ -9,8 +9,11 @@ app.set('views', './src/views') app.use(express.static('dist')) +const siteName = "Pronoun Site" + app.get('/', (req, res) => { - res.render('home') + const pageTitle = siteName; + res.render('home', { siteName, pageTitle } ) }) app.get('/:nominative/:accusative/:pronominal_possessive/:predicative_possessive/:reflexive', (req, res) => { @@ -21,8 +24,11 @@ app.get('/:nominative/:accusative/:pronominal_possessive/:predicative_possessive predicative_possessive: predicativePossessive, reflexive, } = req.params + + const pageTitle = [nominative, accusative, pronominalPossessive, predicativePossessive, reflexive].join("/") + " - " + siteName; + res.render('individual', { - nominative, accusative, pronominalPossessive, predicativePossessive, reflexive + siteName, pageTitle, nominative, accusative, pronominalPossessive, predicativePossessive, reflexive }) }) diff --git a/src/views/home.handlebars b/src/views/home.handlebars index 3a275c6..9ca80a9 100644 --- a/src/views/home.handlebars +++ b/src/views/home.handlebars @@ -1,4 +1,3 @@ -
Check the readme!
-Check the readme!
+ diff --git a/src/views/individual.handlebars b/src/views/individual.handlebars index 8dee023..146875f 100644 --- a/src/views/individual.handlebars +++ b/src/views/individual.handlebars @@ -1,4 +1,2 @@ -This site has a license of some sort, and that's linked here.
+ +Thanks for visiting!
\ No newline at end of file diff --git a/src/views/partials/header.handlebars b/src/views/partials/header.handlebars new file mode 100644 index 0000000..06ccc3f --- /dev/null +++ b/src/views/partials/header.handlebars @@ -0,0 +1 @@ +