Update 1
Here is what I exactly wanna accomplish
The way I have structured the my domain , subdomain and blog on domain is as below:
Main site : http://www.mysite.com which will host most pages (I am using publii with hidden posts as pages)
Blog Site : http://www.mysite.com/blog (I wish to host publii blog directly on this)
As on writing this post, I am able to configure Cloudflare Pages with Github Pages as middleware for main site (as described in this post : https://getpublii.com/docs/configure-cloudflare-pages-with-publii.html )
The current / temporary solution I made :
I have exported my main site and uploaded it on github repo.
Each time I update publii blog, I have to export it as plain file to my pc and then manually upload it on the blog folder.
Current problems:
- when we use native push to github pages from publii dashboard (for main site), it actually removes the whole “blog” folder from git repo.
- Can not define specific “folder” in the repo as root directory for publii blog site.
The Possible solution :
- If we can somehow stop publii from removing specific folders (in my case its repo/blog) while pushing main site to github pages.
- If we can define specific folder in the repo for sites that hosted on subfolders.
It would be interesting to do this workaround in the weekend!