Coder Social home page Coder Social logo

Comments (5)

tsanie avatar tsanie commented on May 26, 2024

Should be loaded in homepage, to make sure if there is any posts would use it.

Yeah, but in the Archives, Tags, About, etc. seems need to add some additional conditions to determine if it is needed.

from hexo-theme-next.

wafer-li avatar wafer-li commented on May 26, 2024

@tsanie
I found useful Hexo Helper which could determine is_home(), is_tag() etc.

OK, I understood, it does need to render math on the homepage.

It seems that Muse theme display the whole post on the homepage by clicking the Read More button?

Will fix it ASAP

from hexo-theme-next.

wafer-li avatar wafer-li commented on May 26, 2024

Maybe provide some new configs to allow the user load math in tags and archives pages.
@tsanie @iissnan

Such as:

# Math Equations Render Support
math:
  enable: true

  # Default(true) will load mathjax/katex script on demand
  # That is it only render those page who has 'mathjax: true' in Front Matter.
  # If you set it to false, it will load mathjax/katex srcipt EVERY PAGE.
  per_page: true
  
  tags_page: false
  achives_page: false

  #engine: mathjax
  engine: katex

from hexo-theme-next.

tsanie avatar tsanie commented on May 26, 2024

@wafer-li emmm, I think user could switch their config by the tags, archives page's front-matter, like the normal post page.

Just treat the tags, archives, abouts pages as the normal page, I think it's better.


Only the homepage is the special one.

from hexo-theme-next.

wafer-li avatar wafer-li commented on May 26, 2024

@tsanie
OK, that might be better.

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.