EJS doesn't have a layouts feature but it's actually possible to implement layouts using the includes feature as described in the docs. This is a slightly more detailed example, using express and a variable to set the path to the template, that shows how to implement a common layout across pages.
npm install
npm start
Then load the following urls which are both using views/layout.ejs:
[Note that you can set another port using PORT env variable]