Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work on post excerpt [solved] #333

Closed
3 tasks done
icecory opened this issue Jun 21, 2018 · 4 comments
Closed
3 tasks done

Not work on post excerpt [solved] #333

icecory opened this issue Jun 21, 2018 · 4 comments

Comments

@icecory
Copy link

icecory commented Jun 21, 2018

i find mathjax not work on post excerpt in homepage, and i try to use chrome ext Math Anywhere its also not work
so these code perhaps should be deleted

{% if is_home() %}
{% for post in page.posts %}
{% if post.mathjax and not is_index_has_math %}
{% set is_index_has_math = true %}
{% endif %}
{% endfor %}
{% endif %}

when ``` in post excerpt it will be replaced with 12345678910111213141516171819202122232425262728293031323334 a large string
like
```
int a;
```
it will be replaced like `12345678910111213141516171819202122232425262728293031323334int a;12345678910111213141516171819202122232425262728293031323334`

@ivan-nginx
Copy link
Member

Try to use with post excerpt in homepage code block or any other tag before. I think in post excerpt only simple words working for now.

@stevenjoezhang
Copy link
Contributor

Could you provide more details? For me, mathjax works fine on the homepage.

@stevenjoezhang
Copy link
Contributor

@icecory The large string is the line numbers:
2018-12-25 12 18 01

stevenjoezhang added a commit that referenced this issue Dec 25, 2018
* Fix #181

* Fix #181
@stevenjoezhang stevenjoezhang added Bug and removed Stale labels Mar 20, 2019
@ivan-nginx ivan-nginx changed the title not work on post excerpt Not work on post excerpt [solved] Apr 1, 2019
@Olvi73 Olvi73 mentioned this issue Sep 28, 2019
4 tasks
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this issue Nov 19, 2019
@lock
Copy link

lock bot commented Apr 2, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants