Comments (8)
When you publish an article, the call stack will be like this:
https://github.com/tajpure/hexo-editor/blob/master/routes/editor.js#L42
=>> https://github.com/tajpure/hexo-editor/blob/master/models/file-manager.js#L58
=>> https://github.com/tajpure/hexo-editor/blob/master/models/article.js#L38
As shown above, you should add a new field 'thumbnails' to the Article model.
from hexo-editor.
I've added it before posting this issue, but didn't get anything working. What I've done was shown as in those screenshots, and I believe I've modified multiple other files as well.
Do you mind have a look and give some more advices on this?
Thanks a lot!
from hexo-editor.
Could you show your code online, so that I can review it?
from hexo-editor.
Sure thing, here it is: https://github.com/adamleo/blog-editor.
Please have a look, thanks a lot!
from hexo-editor.
The thumbnail
field has been generated in the source files, did you fix it?
from hexo-editor.
you mean you updated this repo? so i'll just need to do a fresh pull, right?
from hexo-editor.
I have cloned your project to my machine and tested it, I found the 'thumbnail' generated in the .md files.
from hexo-editor.
ahh that was changed by myself manually.
from hexo-editor.
Related Issues (20)
- 请问如何添加图床? HOT 1
- 请问能直接上传剪切板里面的图片吗? 比如QQ截图 HOT 3
- 请问下生成的文章文件默认生成是中文标题.html? HOT 3
- Add support for author setting
- Custom meta field`s
- Creating a new post while on draft or posts saves it to post even if you press on save to draft. HOT 1
- About the tags
- 几个问题(不知道是不是bug) HOT 1
- 使用的疑问和一些小bug HOT 5
- 博客在二级目录的时候生成路径异常 HOT 4
- 关于使用的一个问题
- nodejs 12.10.0 不能正常运行 HOT 1
- 如何发布带图片的文章 HOT 1
- 关于编辑处的一些设置 HOT 1
- 首次登录的账号和密码是?
- Busboy is not a constructor
- 0 files generated HOT 4
- 可以考虑加入博客源文件自动备份机制
- 在drafts目录下新建文件并提交时,文件总是跑到posts目录中 HOT 1
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-editor.