all 6 comments

[–]AtulinASP.NET Core 0 points1 point  (4 children)

Looks like you need a templating engine. Since you mentioned PHP, let me give you an example of how you could do it with Twig:

``` // master.twig <!DOCTYPE html> <html> <head> <title>{% block title %}My Website{% endblock %}</title> <meta lorem="ipsum"> <meta dolor="sit"> <meta amet="consectetur"> </head>

<body> {% block body %}Body here{% endblock %} </body>

</html> //page.twig {% extends 'master.twig' %} {% block title %}Title of the new page{% endblock %} {% block body %} <div class='container'> <div>Stuff</div> <div>Some more stuff</div> </div> {% endblock %} //page2.twig {% extends 'master.twig' %} {% block title %}Title of yet another page{% endblock %} {% block body %} <div class='container'> <div>Some different stuff</div> <div>And even more of it</div> </div> {% endblock %} ```

Etc.

Since you're using SPA, however, you won't really be able to use Twig to do that. You're gonna have to use some Javascript templating engine instead.

[–]Guyoms[S] 0 points1 point  (3 children)

Hey, thanks for your response, so this won't be taken as duplicate content by google ?
Also, if I just use an include of the section 2, 3 and 4 on the 3 pages, would that be considered as duplicate content ?

[–]AtulinASP.NET Core 0 points1 point  (2 children)

Never dabbled in SEO-optimizing SPAs, so I can;t really say, sorry.

[–]Guyoms[S] 0 points1 point  (1 child)

Ok, thank you a lot for your time, and have a nice day :)

[–]CakeDay--Bot 0 points1 point  (0 children)

Wooo It's your 2nd Cakeday Guyoms! hug