GoodManWEN.github.io icon indicating copy to clipboard operation
GoodManWEN.github.io copied to clipboard

I want to use this project as my blog

Open lixbao opened this issue 3 years ago • 6 comments

Why can't I run it directly by forking your project to my gitpage and if I run directly, it show the content of readme file?

lixbao avatar Jul 21 '21 02:07 lixbao

To ensure that the program works as expected, you will need to do a few extra steps after forking.

  1. Configure the URL for the project in the settings of the github repository, so that others can access the blog through that URL.
  2. Go to Actions settings and turn on the workflow run permission manually. As a protection measure, the forked project will not trigger actions by default. It doesn't take much work, you just need to press the activate button in order to start.

After startup, the readme.md in the root directory will not be displayed in the website. The reason you can see a readme file on the website is because there is another copy of readme.md in the /blog directory. The logic is that the website will show all the articles in the /blog directory, following the corresponding tree structure.

If you have further questions, don't hesitate to let me know.

GoodManWEN avatar Jul 21 '21 18:07 GoodManWEN

image I run it successfully ,but also show the readme file. image

and if I delete the readme.md in the root directory that will display the 404 page.

I have only revised the following. image

lixbao avatar Jul 22 '21 04:07 lixbao

The Github pages feature comes with a set of UI logic natively, which allows users to display pages without customizing their appearance, also this means that if you are trying to use html for customization then you will need to do additional setup.

I've visited your project and the reason your pages only shows the readme.md under /root directory is because you have not done pages's futher settings, this makes the pages interpreter not connect to the specified page style file, you need to modify it to achieving the expected outcome. Of course, the most recommended way is to fork this project directly, so that all the configuration is inherited by default and you don't need to do any additional configuration.

GoodManWEN avatar Jul 22 '21 16:07 GoodManWEN

I made it. Thank you for your help.

lixbao avatar Jul 23 '21 01:07 lixbao

I've visited your project and the reason your pages only shows the readme.md under /root directory is because you have not done pages's futher settings, this makes the pages interpreter not connect to the specified page style file,-----我也遇到了同样的问题,仅展示了根root的readme界面,这里提到的pages's futher settings 是指什么,我已经更改了[AutoUpdate.yml]文件中的仓库引用,指向了我自己fork后的仓库

wanggithub132 avatar Nov 23 '23 13:11 wanggithub132

问题已经解决了,我更改了page中 jekyll的路径,使用了docs路径,解决了该问题

wanggithub132 avatar Nov 24 '23 07:11 wanggithub132