I want to make a website, that is by definition a software, but I don't remind seeing any open source websites. My website like many is supposed to pay itself by ads.
Is there a reason why I should not open the source code of my whole website instead of just specific components? And the benefits are the same of making other kind of software open source?
I am not sure if it will be for profit or not, so in the case the answers for both are different, you would be interesting to point it out.
EDIT: I tried to clarify the question above. I don't have any doubt on how great is to get something awesome you made for you website, strip any dependencies to your website and make publicly available. I wonder whether every company or NPO keep the code of the website itself for them (and that is what I meant by not in a public repository) and why?