Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 如何获得所有的职位,是支付和公众与鬼_Node.js_Handlebars.js_Ghost Blog - Fatal编程技术网

Node.js 如何获得所有的职位,是支付和公众与鬼

Node.js 如何获得所有的职位,是支付和公众与鬼,node.js,handlebars.js,ghost-blog,Node.js,Handlebars.js,Ghost Blog,我正在尝试创建自定义页面example.com/free,以获得所有免费帖子和example.com/pro 得到所有带薪职位,但我无法解决这一问题: {{!< default}} {{#post}} <div class='c-archive'> <h1 class='c-archive__title'>{{ title }}</h1> </div> <div class='o-grid'> {{#get 'pos

我正在尝试创建自定义页面example.com/free,以获得所有免费帖子和example.com/pro 得到所有带薪职位,但我无法解决这一问题:

{{!< default}}

{{#post}}

<div class='c-archive'>
  <h1 class='c-archive__title'>{{ title }}</h1>
</div>

<div class='o-grid'>
  {{#get 'posts' filter="visibility:paid"}}
    {{#foreach posts}}
      {{> post-card }}
    {{/foreach}}
  {{/get}}
</div>

{{/post}}
{{!明信片}
{{/foreach}}
{{/get}
{{/post}

这是获得所有付费邮件的解决方案

{{!< default}}

{{#post}}

  <div class='c-archive'>
    <h1 class='c-archive__title'>Pro Lessons</h1>
  </div>

  <div class='o-grid'>
  {{#get 'posts'}}
    {{#foreach posts visibility='all'}}
      {{#has visibility="paid"}}
        {{> post-card-custom }}
      {{/has}}
    {{/foreach}}
  {{/get}}

  </div>

{{/post}}
{{!邮政卡定制}
{{/has}
{{/foreach}}
{{/get}
{{/post}