MCPcopy
hub / github.com/jaredly/hexo-admin / addIsDraft

Function addIsDraft

api.js:13–17  ·  view source on GitHub ↗
(post)

Source from the content-addressed store, hash-verified

11module.exports = function (app, hexo) {
12
13 function addIsDraft(post) {
14 post.isDraft = post.source.indexOf('_draft') === 0
15 post.isDiscarded = post.source.indexOf('_discarded') === 0
16 return post
17 }
18
19 function tagsCategoriesAndMetadata() {
20 var cats = {}

Callers 5

removeFunction · 0.85
publishFunction · 0.85
unpublishFunction · 0.85
renameFunction · 0.85
api.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected