I have my first web project which will approximately be 50 pages. Up until now I've just done 5 page websites, so if I needed to e.g. add a navigation link, I would just quickly type the code and copy and paste it into all 5 HTML files..
I'm looking for the 'best practice' sort of way so I can update the navigation links somewhere, and it'll update every page..
I saw this solution on StackOverflow:
Homepage Code:
<div id="nav-container">
</div>
<script>
$(function(){
$("#nav-container").load("navigation-links.html");
});
navigation-links.html file:
<div class="nav-btn1">Link</div>
<div class="nav-btn2">Link</div>
<div class="nav-btn3">Link</div>
<div class="nav-btn4">Link</div>
But as the html links aren't within the actual pages, would this have a negative impact from an SEO standpoint?
If so, is there another way I should be doing this?