How to filter the post that titis is empty #5576
Unanswered
liunaijie
asked this question in
Question / Answer
Replies: 1 comment 1 reply
-
Hexo allows posts to have empty titles, so it doesn't perform any special handling for them. If you want to hide these posts, you can set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When generate post, it will read all files under
_posts
folder, I want to filter some file that not write thetitle
.I try to use
Filter
function to do this, I write a simple code like this and post it toscripts/filterNoTitle.js
When run this, it can list the file that title is empty, but It will get exception like this
It looks the downstream
Filter
still run.Beta Was this translation helpful? Give feedback.
All reactions