I am able to create a public link for one page but when I try to do it for additional pages setting the public link does not work.
I found that the workaround is to open the next page in edit mode and then close the page. The public link can then be set. I have to repeat this for each additional page that I want to make public.