Closed nickdesaulniers closed 7 years ago
The post looks fine to me. Is that the only post in your website?
I have the same error: categories.find is not a function .
code: {{ list_categories('ins') }}
. ins
is a category of level 1 .
Please help @NoahDragon @nickdesaulniers . I really don't know how to use this API. Thanks!
This happens when you put posts not in source/_posts
directory. Hexo cannot generate categories variable correctly.
This happens when you put posts not in
source/_posts
directory. Hexo cannot generate categories variable correctly.
I noticed the same problem. Not having other directories under source/
looks like a fairly unfortunate limitation. How can one write non-post markdown files?
I'm seeing this issue as well when creating pages (not posts) as described here: https://hexo.io/docs/writing#Layout
My pages have a front-matter section with a category defined, the same way as my posts. Does this have anything to do with the Page (models/page.js) object not having the same "virtual" properties as the Post object (models/page.js)?
Environment Info
Node version(
node -v
)Your site
_config.yml
Your theme
_config.yml
Plugin version(
npm ls --depth 0
)Trying to migrate my blog from octopress. Copied over the
source/_posts
dir, removed the video tag the parser was choking on. Now I see this:Seems to be printed multiple times. Are my categories not in a parse-able format?