Assuming I have a repo named github.com/xxxx/xxxx.github.com set as githhub pages that
is published as xxxx.github.io, I'd like to prevent public cloning of github.com/xxxx/xxxx.github.com
but keep the page xxxx.github.io public.
Can I achieve this goal by setting github.com/xxxx/xxxx.github.com as private? In other words,
if github.com/xxxx/xxxx.github.com is private, can xxxx.github.io be publically accessible?
Yes, this works exactly as you describe 👍 (Although, the repository name should be xxxx.github.io.)
Let us know if you have more questions.