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

文章的封面图片始终显示不出来 #48

Closed
AlchemicRonin opened this issue Aug 8, 2019 · 2 comments
Closed

文章的封面图片始终显示不出来 #48

AlchemicRonin opened this issue Aug 8, 2019 · 2 comments

Comments

@AlchemicRonin
Copy link

我尝试过了设置index_img,但是无论是设置相对路径(我本以为是我自己写的url格式有问题,但是看了很多文章和百科后,尝试了很多次后还是没法显示,我猜可能标签的css出了问题),还是我把图上传到图床后再添加链接,都无法显示。而且博主你自己的博客的首页文章封面图片也没法正常显示。最后我还想问一下,在文章中嵌入图片要怎么处理?和封面一样?还是要用插件什么的?

@0x2E
Copy link
Member

0x2E commented Aug 9, 2019

@MaverickNone 你好,你说的是这个图片吗
1.png

昨晚我调整了一下博客的目录,忘记在文章里改了 😂

文章中的 index_img 属性是有效的,你看下是不是 yml 的格式出错了,键和值之间要间隔一个英文空格。

文章正文中嵌入图片就是用正常的 Markdown 或 HTML 语法即可。

// Markdown
![your_img_alt_text](your_img_url)
// HTML
<img src="your_img_url" alt="your_img_alt_text">

@AlchemicRonin
Copy link
Author

谢谢!已经成功了,估计是yml哪个地方写错了。。。

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