Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to use this project as my blog #8

Open
lixbao opened this issue Jul 21, 2021 · 6 comments
Open

I want to use this project as my blog #8

lixbao opened this issue Jul 21, 2021 · 6 comments
Labels
question Further information is requested

Comments

@lixbao
Copy link

lixbao commented Jul 21, 2021

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?

@GoodManWEN
Copy link
Owner

GoodManWEN commented Jul 21, 2021

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 GoodManWEN added the question Further information is requested label Jul 21, 2021
@lixbao
Copy link
Author

lixbao commented Jul 22, 2021

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

@GoodManWEN
Copy link
Owner

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.

@lixbao
Copy link
Author

lixbao commented Jul 23, 2021

I made it. Thank you for your help.

@wanggithub132
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants