Coder Social home page Coder Social logo

Comments (15)

sli1989 avatar sli1989 commented on May 26, 2024 1

i have report the issue in that repo.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

Can u please provaide all possible links to same issue from @iissnan repo to close them later?
One link already set, is there any another links?

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

@ivan-nginx the lists of opened issues: #2024#1637#2058

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

@sli1989 Thank you!

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

So, what about here?

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

still need to Romove the if(config.template) args.push("--template=" + config.template); in hexo\node_modules\hexo-renderer-pandoc\index.js.
i think it's the problem of the new version of hexo-renderer-pandoc, undefined of template


FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
TypeError: Cannot read property 'template' of undefined
    at Hexo.pandocRenderer (F:\LISAI\alex\hexo\node_modules\hexo-renderer-pandoc\index.js:56:12)
    at Hexo.tryCatcher (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.ret (eval at makeNodePromisifiedEval (C:\Users\Administrator\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)
    at F:\LISAI\alex\hexo\node_modules\hexo\lib\hexo\render.js:61:21
    at tryCatcher (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromiseCtx (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\promise.js:606:10)
    at Async._drainQueue (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\async.js:138:12)
    at Async._drainQueues (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.Async.drainQueues (F:\LISAI\alex\hexo\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

@sli1989 so, we can post this issue in hexo-renderer-pandoc and explain this, right? I can't to edit external repositories. 😃


Oooh, already done. Well, need just to wait response from author.

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

in the new version of hexo-renderer-pandoc, a template option is added in configuration .
is there any possible to add corresponding settings in next? like set pandoc in theme's _config.yml.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

This is only readme commit. Need to see this.

And as i see need just to comment template option to bypass it. Try it.

pandoc:
  filters:
  extra:
#  template:
  meta:
  mathEngine:

P.S. Not romove, but remove — 去掉 — Удалить.

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

still Cannot read property 'template' of undefined.
the templates instruction in pandoc.

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

Try to change this:

-  if(config.template) args.push("--template=" + config.template);
+  if(config.template) {
+    args.push("--template=" + config.template);
+  }

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

if change the file, just comment it.
the problems is that i want to add configuration in theme's _config.yml to realize the ci automatically.
thank u your help, maybe need to wait author's response.

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

@ivan-nginx you can close the issue.
if you want to use hexo-renderer-pandoc(new version) in hexo , you must add default configuration in the site's _config.yml not the theme's. I would never have thought of doing that.

pandoc:
  filters:
  extra:
  template: 
  meta:
  mathEngine:

from hexo-theme-next.

ivan-nginx avatar ivan-nginx commented on May 26, 2024

@sli1989 so, all works as i saw before? Let me repeat this steps:

  1. Add in root Hexo _config.yml:
    pandoc:
      filters:
      extra:
      template: 
      meta:
      mathEngine:
    
  2. No need to comment template: option in this configuration.
  3. No errors at generation. All works fine in accorduance with #19 issue.

That's right?

from hexo-theme-next.

sli1989 avatar sli1989 commented on May 26, 2024

yes, just Add default configuration in root Hexo _config.yml and ensure that mathjax's cdn is working.
i think it's just need a definition, even comment template: option, it works as well.

from hexo-theme-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.