Giter Club home page Giter Club logo

Comments (8)

tajpure avatar tajpure commented on August 22, 2024

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.

adamliuio avatar adamliuio commented on August 22, 2024

screen shot 2018-02-02 at 10 25 33 am

screen shot 2018-02-02 at 10 25 40 am

screen shot 2018-02-02 at 10 25 45 am

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.

tajpure avatar tajpure commented on August 22, 2024

Could you show your code online, so that I can review it?

from hexo-editor.

adamliuio avatar adamliuio commented on August 22, 2024

Sure thing, here it is: https://github.com/adamleo/blog-editor.

Please have a look, thanks a lot!

from hexo-editor.

tajpure avatar tajpure commented on August 22, 2024

The thumbnail field has been generated in the source files, did you fix it?

from hexo-editor.

adamliuio avatar adamliuio commented on August 22, 2024

you mean you updated this repo? so i'll just need to do a fresh pull, right?

from hexo-editor.

tajpure avatar tajpure commented on August 22, 2024

I have cloned your project to my machine and tested it, I found the 'thumbnail' generated in the .md files.
demo

from hexo-editor.

adamliuio avatar adamliuio commented on August 22, 2024

ahh that was changed by myself manually.

from hexo-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.