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

Failed to see any articles under my "Blog" column #6675

Closed
4 tasks done
Pisces032 opened this issue Jan 22, 2024 · 5 comments
Closed
4 tasks done

Failed to see any articles under my "Blog" column #6675

Pisces032 opened this issue Jan 22, 2024 · 5 comments
Labels
working as intended Issue reports behavior in line with specification

Comments

@Pisces032
Copy link

Context

I'm trying to build my own blog website. I followed the instructions on https://squidfunk.github.io/mkdocs-material/, but my "Blog" page couldn't work.

Bug description

I had tried my website by "mkdocs serve" without any problems. However, after I uploaded it on GithubPages, I can't see my blogs. You can see details from my repository "P1sc3s007JustMyBlog".
This is my results in "mkdocs serve", which works well.
1
This is when is was upload.
2

Related links

Reproduction

blog根.zip

Steps to reproduce

I don't know how to solve it?

Browser

No response

Before submitting

@squidfunk
Copy link
Owner

Thanks for reporting. Everything is working correctly – you have marked your posts with draft, which are not rendered when the site is built, except for when you set draft in mkdocs.yml:

plugins:
  - blog:
      draft: true

Either remove draft: true from the posts, or set draft to true in mkdocs.yml.

@squidfunk squidfunk added the working as intended Issue reports behavior in line with specification label Jan 22, 2024
@Pisces032
Copy link
Author

Thank you! But today I try it again. But "Blog" column still work incorrectly. I was thinking it was because blog plugin doesn't support Static web page? Cause I use GithubPages to build my website.
This is my "mkdocs serve" result:
1
This is when it is uploaded:
2
and after I click an article on the left side:
3

@Pisces032
Copy link
Author

I have change some code about blog plugin to annotation, so that I can keep my web work normally.

@squidfunk
Copy link
Owner

squidfunk commented Jan 23, 2024

Please read my previous comment carefully. Additionally, do not link blog posts in nav in mkdocs.yml – the blog plugin will do it for you.

@Pisces032
Copy link
Author

Thank♪(・ω・)ノ you so much, after I remove all the nav ,it looks well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working as intended Issue reports behavior in line with specification
Projects
None yet
Development

No branches or pull requests

2 participants