EJS Partials

Partials come in handy when you want to reuse the same HTML across multiple views. Think of partials as functions, they make large websites easier to maintain as you don’t have to go and change a piece of text in every page it appears in. Instead, you define that reusable bundle of code in a file andinclude it wherever you need it.

ejs

and the post page:

ejs

and a file called footer.ejs in that same directory:

    <!-- views/partials/footer.ejs -->
        <footer class="footer">
        <p>© 90210 Lawyer Stuff.</p>
        </footer>

REFERENCE

Main page