There’s more details here but in short yes, the content of __site is what you want to put on the server.
One thing to note is that there’s two situations:
- the base URL is
abc.comand the landing page is atabc.com/index.html; in that case you just have to copy paste the content of__siteto the server - the base URL is
abc.com/baseand the landing page is atabc.com/base/index.html; in that case you just have to copy paste the content of__siteto the server after having calledoptimizeand making sure that there is a lineprepath = "base"in the fileconfig.md
If you’re deploying on GitHub for instance, case (1) is a “personal page” (username.github.io) and case (2) is a “project page” (username.github.io/foobar/)
If you tried deploying by copy pasting the content and saw un-styled content, it’s usually because the prepath is not set properly (again, cf. link at the beginning of my answer).