Comments (8)
@xaoxuu
Please specify eyeCatchImage
and description in frontmatter of markdown file. It is explained in detail issue #13.
Please see the follow about frontmatter.
https://github.com/tea3/hexo-related-popular-posts/wiki/More-Settings#customize-html
from hexo-related-popular-posts.
Can I change the eyeCatchImage
attribute in the blog's _config.yml
? Because the theme already uses other attributes, I have to duplicate the image link.
headimg: https://gitee.com/xaoxuu/cdn-assets/raw/master/blog/[email protected]
eyeCatchImage: https://gitee.com/xaoxuu/cdn-assets/raw/master/blog/[email protected]
This attribute may be different in different themes, such as header_img:
or cover_img:
...
It would be great if it can be customized. 😁
from hexo-related-popular-posts.
@xaoxuu
I'm sorry. It cannot be specified in _config.xml
. This attribute is a value specified for each article.
from hexo-related-popular-posts.
What I mean is, allow users to change eyeCatchImage
to other attribute names to suit the user's hexo theme, for example:
Edit in blog/_config.yml
:
popularPosts:
eyeCatchImageAttributeName: themeHeaderImage
So users can write in front-matter like this:
---
title: xxx
themeHeaderImage: https://xxx.png
---
Instead of having to write both:
---
title: xxx
themeHeaderImage: https://xxx.png
eyeCatchImage: https://xxx.png
---
from hexo-related-popular-posts.
@xaoxuu
I see. Actually , this plugin supports the postImage
and ampSettings
attributes in addition to eyeCatchImage
. Can't be customized, but can these attributes use?
from hexo-related-popular-posts.
I submitted a pr about this, you can see if it works.
from hexo-related-popular-posts.
@xaoxuu
Thank you for suggestion. I want to merge tonight or tomorrow. Please wait for 🙏🏻
from hexo-related-popular-posts.
Thank you 🤝
from hexo-related-popular-posts.
Related Issues (20)
- How to modify the font? HOT 2
- 『Site』view count HOT 1
- tag_map support HOT 2
- isImageとisExcerptはfrontmatterで設定してもjsonでは取得できない HOT 1
- Can't generate url correctly when site is in a subdirectory HOT 3
- Unhandled rejection TypeError: Cannot read property 'path' of undefined HOT 2
- one problem with Next theme
- Google analytics configuration not clear or out-of-date HOT 3
- list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually HOT 3
- hexo-fs out of date cause fail to install on node v13 HOT 3
- TypeError: Cannot read property 'length' of undefined
- Unhandled rejection TypeError [ERR_INVALID_ARG_TYPE] HOT 3
- list-json.js use moment format error
- If you use hexo5.0 and use the related Popular Posts plug-in, you may cause errors. HOT 1
- Security problem HOT 2
- Multiple posts could not contain a same tag (TypeError: this.localeData(...).postformat is not a function) HOT 1
- Does anyone else update this package? HOT 1
- When article was modified, the page could't render again HOT 2
- If there is no posts, the function should return empty HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-related-popular-posts.