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

为什么运行后,提示127.0.0.1 拒绝了我们的连接请求。 #75

Open
chymy opened this issue Sep 10, 2024 · 6 comments
Open

Comments

@chymy
Copy link

chymy commented Sep 10, 2024

./markdown-blog web 运行后,提示 127.0.0.1 拒绝了我们的连接请求。

@chymy
Copy link
Author

chymy commented Sep 10, 2024

md下不能有子目录吗?有子目录下话会请求失败:
[HTTP Server] http: panic serving [::1]:41924: runtime error: index out of range [0] with length 0

@gaowei-space
Copy link
Owner

md下不能有子目录吗?有子目录下话会请求失败: [HTTP Server] http: panic serving [::1]:41924: runtime error: index out of range [0] with length 0

子目录是支持的,如图:
image

可以重新创建些测试的md文件试试,这是我博客目录结构

# tree
.
├── 01@开源之路
│   ├── 01@Markdown-Blog.md
│   ├── 02@Meituan-Pub-Union.md
│   ├── 03@Error-Handler.md
│   └── 04@Gocron.md
├── 02@MacOS开发环境搭建
│   ├── 01@序.md
│   ├── 02@Typora.md
│   ├── 03@iTerm2.md
│   └── 04@gLib.md
├── 03@技术实践
│   ├── Appium+Mitmproxy搭建iOS自动化环境.md
│   └── comfyui
│       └── node.md
└── README.md

@chymy
Copy link
Author

chymy commented Sep 10, 2024

我知道原因了,目录下必须得有md文件才行。
另外,原来md文件中的图片如何加载,相对路径不行,提示找不到图片

@chymy
Copy link
Author

chymy commented Sep 10, 2024

我知道原因了,目录下必须得有md文件才行

这个问题可以优化下吗?

@gaowei-space
Copy link
Owner

我知道原因了,目录下必须得有md文件才行。 另外,原来md文件中的图片如何加载,相对路径不行,提示找不到图片

看下这个issues #68 (reply in thread)

@gaowei-space
Copy link
Owner

我知道原因了,目录下必须得有md文件才行

这个问题可以优化下吗?

我刚刚测试了下,当目录第一个文件夹为空时会报错,这个我记下。

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

No branches or pull requests

2 participants