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

list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually #18

Open
jerryc127 opened this issue Apr 2, 2019 · 3 comments

Comments

@jerryc127
Copy link

Before you submit your issue, please tell me your environment info. Also , if you occur ERROR Plugin load failed: , please reinstall hexo and npm as follows, for example.

$ nvm install v6.10.1
$ nvm use v6.10.1
$ npm install -g npm
$ npm install -g hexo-cli
$ hexo init hexo6101
$ cd hexo6101
$ npm install
$ npm install hexo-related-popular-posts --save

Also , if you occur DTraceProviderBindings.node error , please see issue#1.
#1

For BUG

  • BUG description
  • the way to reproduce
  • log with hexo

For question

just push question

For feature request

just push feature request

Environment Info

OS version

  • OSX (please tell me version)
  • Windows (please tell me version)
  • Linux (please tell me version)

Node version(node -v)

v6.10.1

Your site _config.yml

# Hexo Configuration
...

Your theme _config.yml

# Hexo Configuration
...

Plugin version(npm ls --depth 0)

[email protected] ~/hexo-vanilla-site
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

[23:31:46.396] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined                                                                                                                [23:31:46.500] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined                                                                                                                [23:31:46.508] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined                                                                                                                [23:31:46.515] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined                                                                                                                [23:31:46.519] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined                                                                                                                [23:31:46.540] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined                                                                                                                [23:31:46.553] [hexo-related-popular-posts] error:  (list-json.js)The theme you are using doesn't support "post" data. P lease set the data manually. (e.g. <%- popular_posts( {} , post ) %> )                                                   For detail , please see this url.                                                                                        https://github.com/tea3/hexo-related-popular-posts/issues?utf8=%E2%9C%93&q=Cannot%20read%20property%20%27tags%27%20of%20 undefined
--


how to solve this problem?

@tea3
Copy link
Owner

tea3 commented Apr 3, 2019

@jerryc127
What are you using the theme ? Some of the themes are out of support because they operate out of specification.

@crezenity
Copy link

Hey can you fix this plugin for this theme Matery Theme? There is no show up when i apply your code.. post content is HERE

@gregor77
Copy link

@jerryc127

You might have noticed that the following message was printed. "(list-json.js)The theme you are using doesn't support "post" data. Please set the data manually. (e.g. <%- popular_posts( {} , post ) %> )"

popular_posts function is need to params (options and post). so you change code bellow in article.ejs file

-- before
<%- popular_posts () %>
-- to-be
<%- popular_posts ({}, { post: post }) %>

you can check popular_posts function spec to node_modules/hexo-related-popular-posts/lib/helper.js

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

4 participants