title: How to use nunjuck `include` in post?
body: <p>I'm playing around with hexo, I'm testing the nunjuck syntax which work for a small loop. However I can't find how to <a href="https://mozilla.github.io/nunjucks/templating.html#include" rel="nofollow noreferrer">include a file</a>, I might be wrong in the location of my file (currently next to the <code>.md</code>, in <code>/source/_posts</code>).</p>
  
  <h3>Environment Info</h3>
  
  <p>Node version(<code>node -v</code>):</p>
  
  <pre><code>node --version; npm --version
  v8.9.1
  5.5.1
  </code></pre>
  
  <h3>Your site <code>_config.yml</code> (Optional):</h3>
  
  <pre><code># Hexo Configuration
  ## Docs: https://hexo.io/docs/configuration.html
  ## Source: https://github.com/hexojs/hexo/
  
  # Site
  title: Hexo
  subtitle:
  description:
  author: John Doe
  language:
  timezone:
  
  # URL
  ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
  url: http://yoursite.com
  root: /
  permalink: :year/:month/:day/:title/
  permalink_defaults:
  
  # Directory
  source_dir: source
  public_dir: public
  tag_dir: tags
  archive_dir: archives
  category_dir: categories
  code_dir: downloads/code
  i18n_dir: :lang
  skip_render:
  
  # Writing
  new_post_name: :title.md # File name of new posts
  default_layout: post
  titlecase: false # Transform title into titlecase
  external_link: true # Open external links in new tab
  filename_case: 0
  render_drafts: false
  post_asset_folder: false
  relative_link: false
  future: true
  highlight:
    enable: true
    line_number: true
    auto_detect: false
    tab_replace:
  
  # Home page setting
  # path: Root path for your blogs index page. (default = '')
  # per_page: Posts displayed per page. (0 = disable pagination)
  # order_by: Posts order. (Order by date descending by default)
  index_generator:
    path: ''
    per_page: 10
    order_by: -date
  
  # Category &amp; Tag
  default_category: uncategorized
  category_map:
  tag_map:
  
  # Date / Time format
  ## Hexo uses Moment.js to parse and display date
  ## You can customize the date format as defined in
  ## http://momentjs.com/docs/#/displaying/format/
  date_format: YYYY-MM-DD
  time_format: HH:mm:ss
  
  # Pagination
  ## Set per_page to 0 to disable pagination
  per_page: 10
  pagination_dir: page
  
  # Extensions
  ## Plugins: https://hexo.io/plugins/
  ## Themes: https://hexo.io/themes/
  theme: landscape
  
  # Deployment
  ## Docs: https://hexo.io/docs/deployment.html
  deploy:
    type:
  &lt;/details&gt;
  </code></pre>
  
  <h3>Hexo and Plugin version(<code>npm ls --depth 0</code>):</h3>
  
  <pre><code>"hexo": "^3.2.0",
  "hexo-generator-archive": "^0.1.4",
  "hexo-generator-category": "^0.1.3",
  "hexo-generator-index": "^0.2.0",
  "hexo-generator-tag": "^0.2.0",
  "hexo-renderer-ejs": "^0.3.0",
  "hexo-renderer-stylus": "^0.3.1",
  "hexo-renderer-marked": "^0.3.0",
  "hexo-server": "^0.2.0"
  </code></pre>
  
  <h3>Directory Structure</h3>
  
  <pre><code>tree ./
  ./
  ├── include
  │   └── colors.html
  └── _posts
      └── button6.md
  </code></pre>
  
  <h3>Usage</h3>
  
  <pre><code>npm install --save --only=prod hexo-include
  </code></pre>
  
  <p>In <em>button6.md</em> I added</p>
  
  <pre><code>{% include "include/colors.html" %}
  </code></pre>
  
  <h3>Error</h3>
  
  <pre><code>Unhandled rejection Template render error: (unknown path)
    Error: template not found: include/colors.html
  </code></pre>
  
  <h3>For question</h3>
  
  <p>I've this post in _hexo-demo/source/<em>posts/button6.md</em></p>
  
  <pre><code>---
  title: button6
  myitems:
    - one
    - two
  ---
  
  {% for item in myitems %}
  &lt;li&gt; {{ item }}&lt;/li&gt;
  {% endfor %}
  
  &lt;hr&gt;
  {% include "colors.html" %}
  </code></pre>
  
  <h3>Question</h3>
  
  <p>Where am I supposed to put my <code>colors.html</code> file in order to be resolve</p>
  
  <p><strong>related:</strong> <a href="https://github.com/hexojs/hexo/issues/2866" rel="nofollow noreferrer">https://github.com/hexojs/hexo/issues/2866</a></p>