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

题图插件没有按照配置正常显示图片 #5797

Closed
iblogc opened this issue Jul 24, 2023 · 7 comments
Closed

题图插件没有按照配置正常显示图片 #5797

iblogc opened this issue Jul 24, 2023 · 7 comments

Comments

@iblogc
Copy link

iblogc commented Jul 24, 2023

描述这个错误

题图插件bug
前提:文章正文有图
题图插件选“正文第一个图”为题图,最终结果显示unsplash的无图页面,查看题图的 img html 标签上的 src 发现宽度变量并没有生效
image
image

如果题图插件选“Unsplash” 则可以正常读取宽度变量,并展示 unsplash 图片
image

所以有两个问题

  1. 特定条件下读取不到正文第一个图
  2. 特定条件下宽度变量没有生效

还有一个问题,目前题图选项在配置上可以按照下面的优先级顺序来决定最终的题图

  • 当前页题图 > unsplash
  • 正文第一个图 > unsplash
    那是不是可以再加一选项,我是想 当前页题图 > 正文第一个图 > unsplash 这样一个顺序,因为原文的题图一般来说肯定是最匹配当前文章的,如果原文没有题图,那正文第一个题图大概率也是比较匹配正文的,最后的unsplash基本上和正文没有关联,完全就是为了有一张图排版可能好看些的选择

复现步骤

具体情况如上

其他相关说明

No response

操作系统

Windows

浏览器

115.0.1901.183 (正式版本) (64 位)

发生问题的网址

https://www.yesharris.com/seo-basic/content-duplicate-issue/

@Kenshin
Copy link
Owner

Kenshin commented Jul 24, 2023

😂

你用的旧版,新版在这里 #2487

@Kenshin Kenshin closed this as completed Jul 24, 2023
@iblogc
Copy link
Author

iblogc commented Jul 25, 2023

@Kenshin 插件更新了,没有出现找不到 unsplash 图的情况,但我有一个需求不知道是插件问题还是本来就不支持
我是想不管文章第一个图尺寸够不够大,都显示为题图,我像下面这样配置就没有题图了
image

顺便问下,当前页题图和文章第一个图的区别是什么?
image

@Kenshin
Copy link
Owner

Kenshin commented Jul 25, 2023

我是想不管文章第一个图尺寸够不够大,都显示为题图

可能有 Bug 但不确定,需要你给个 URL 瞧瞧。

前页题图和文章第一个图的区别是什么?

就是字面的意思,比如少数派的文章,题图和页面的第一个图是不同的图,但有些较懒的网页,这两个图是一样的。

@iblogc
Copy link
Author

iblogc commented Jul 25, 2023

@Kenshin
Copy link
Owner

Kenshin commented Jul 25, 2023

我修复了了这个问题,你在更新一次试试。

@iblogc
Copy link
Author

iblogc commented Jul 25, 2023

更新了,可以了😆

@Kenshin
Copy link
Owner

Kenshin commented Jul 25, 2023

okay 解决就好~

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