netlify-plugin-encrypted-files

You can see this page.

But you can't see their source when you view the source of this project.

This demo encrypts HTML, but you could equally encryped JS, Markdown, or whatever other content files you need to keep closed source.