You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i put the demo's post 'hexo theme cutie v2.x tutorial' in my /source/_posts and hexo g,it gave me an error. This is the whole msg:
INFO Validating config
INFO Start processing
FATAL {
err: Error [Nunjucks Error]: _posts/hello-world.md [Line 95, Column 189] unknown block tag: mathjax
===== Context Dump =====
=== (line number probably different from source) ===
90 | <h2 id="Icon-sets"><a href="#Icon-sets" class="headerlink" title="Icon sets"></a>Icon sets</h2><h3 id="Select-an-icon-set"><a href="#Select-an-icon-set" class="headerlink" title="Select an icon set"></a>Select an icon set</h3><dl><dt>Minimal version</dt><dd><code>v2.0.5-beta</code></dd></dl><dl><dt>Configuration file</dt><dd><code>source/_data/cutie.yml</code></dd></dl><dl><dt>Configuration format</dt><dd>Change icon set by changing the name of the icon set in the following snippet. There are three available icon sets in the theme by default: <code>blue-line</code>, <code>blue-shadow</code>, and <code>colorful-outlined</code>.</dd></dl><pre><code><!--code26-->
91 | </code></pre>
92 | <dl><dt>Default configuration</dt><dd><code>blue-line</code></dd></dl><p>Illustration</p>
93 | <h3 id="Add-a-new-icon-set"><a href="#Add-a-new-icon-set" class="headerlink" title="Add a new icon set"></a>Add a new icon set</h3><dl><dt>Minimal version</dt><dd><code>v2.0.5-beta</code></dd></dl><dl><dt>Configuration path</dt><dd><code>source/images/</code></dd></dl><dl><dt>Configuration steps</dt><dd>1. Create a folder named <code>icons</code> in <code>source/images/</code> folder.<br> 2. Create an icon set folder <code>icon-set-name</code>(change it to your desired name) in <code>source/images/icons/</code> folder.<br> 3. Add your own four icons (keep the filename consistent) in <code>svg</code> format to <code>source/images/icons/icon-set-name/</code> folder.<br> 1. <code>search.svg</code><br> 2. <code>archive.svg</code><br> 3. <code>menu.svg</code><br> 4. <code>toc.svg</code><br> 4. Use your new icon set name <code>icon-set-name</code> in <a href="#select-an-existing-icon-set">Select an existing icon set</a></dd></dl><h2 id="Comment-systems"><a href="#Comment-systems" class="headerlink" title="Comment systems"></a>Comment systems</h2><h3 id="Select-comment-systems"><a href="#Select-comment-systems" class="headerlink" title="Select comment systems"></a>Select comment systems</h3><dl><dt>Minimal version</dt><dd><code>v2.0.0-alpha</code></dd></dl><dl><dt>User configuration location</dt><dd><code>source/_data/cutie.yml</code></dd></dl><dl><dt>Configuration format</dt><dd>```yml comment system<br> global:<br> comment_system: valine # Available values: valine, gitment, disqus<br> <!--code27--><br> See <a href="https://valine.js.org/">https://valine.js.org</a> to setup the backend and fill the values.</dd></dl><dl><dt>Default values</dt><dd>No default values, must fill if using the system.</dd></dl><h3 id="Configuration-for-gitment-comment-system"><a href="#Configuration-for-gitment-comment-system" class="headerlink" title="Configuration for gitment comment system"></a>Configuration for gitment comment system</h3><dl><dt>Minimal version</dt><dd><code>v2.0.0-alpha</code></dd></dl><dl><dt>User configuration location</dt><dd><code>source/_data/cutie.yml</code></dd></dl><dl><dt>Configuration format</dt><dd>```yml gitment configuration<br> gitment:<br> owner:<br> repo:<br> client_id:<br> client_secret:<br> <!--code28--><br> See <a href="https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-">https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-</a> to setup the backend and fill the value.</dd></dl><dl><dt>Default values</dt><dd>No default values, must fill if using the system.</dd></dl><h3 id="Configuration-for-Livere-comment-system"><a href="#Configuration-for-Livere-comment-system" class="headerlink" title="Configuration for Livere comment system"></a>Configuration for Livere comment system</h3><dl><dt>Minimal version</dt><dd><code>v2.0.11</code></dd></dl><dl><dt>User configuration location</dt><dd><code>source/_data/cutie.yml</code></dd></dl><dl><dt>Configuration format</dt><dd><code>yml livere configuration livere: id: 'city' # use 'city' if using free version or `premium` if using paid version uid: </code><br> The <code>uid</code> is the string you will see in the snippet provided by livere during installation, as shown in the following screenshot.</dd></dl><pre><code>![Livere setup screenshot](livere_setup.png)
94 | </code></pre>
95 | <dl><dt>Default values</dt><dd>No default values, must fill if using the system.</dd></dl><h2 id="Math-Test"><a href="#Math-Test" class="headerlink" title="Math Test"></a>Math Test</h2>{% mathjax %}
96 | $\gamma = \cfrac{1}{n_{jm}} \sum_{x_i \in R_{i,j}}y_i - F_{m-1}(x_i)$
97 | {% endmathjax %}
98 |
===== Context Dump Ends =====
at formatNunjucksError (/home/ppip/codes/blog/node_modules/hexo/lib/extend/tag.js:171:13)
at /home/ppip/codes/blog/node_modules/hexo/lib/extend/tag.js:246:36
at tryCatcher (/home/ppip/codes/blog/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ppip/codes/blog/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/ppip/codes/blog/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/ppip/codes/blog/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/ppip/codes/blog/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/home/ppip/codes/blog/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/ppip/codes/blog/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/ppip/codes/blog/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/home/ppip/codes/blog/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:471:21) {
line: 95,
location: '\x1B[35m_posts/hello-world.md\x1B[39m [Line 95, Column 189]',
type: 'unknown block tag: mathjax'
}
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
when i put the demo's post 'hexo theme cutie v2.x tutorial' in my /source/_posts and
hexo g
,it gave me an error. This is the whole msg:And npm list:
The text was updated successfully, but these errors were encountered: