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

Han Support https://hanzi.pro/ #1558 #1222 #698 #1598

Merged
merged 2 commits into from
Apr 19, 2017

Conversation

geekrainy
Copy link
Contributor

No description provided.

@@ -3,6 +3,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>


{% if theme.han %}
<link rel="stylesheet" media="all" href="//cdnjs.cloudflare.com/ajax/libs/Han/3.2.7/han.min.css">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cloudflare的CDN在国内很慢吧?
建议不要直接引用CDN,直接将资源文件放在主题里,同时提供CDN选项,可以参考其他资源文件。

@iissnan iissnan merged commit 3a390ee into iissnan:master Apr 19, 2017
@iissnan
Copy link
Owner

iissnan commented Apr 19, 2017

Thanks. 👍

@geekrainy geekrainy deleted the feature/han branch April 19, 2017 04:33
@@ -249,7 +249,7 @@
{% endif %}


<div class="post-body" itemprop="articleBody">
<div class="post-body han-init-context" itemprop="articleBody">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the switch for han-init-context?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a hook. When Han is not enabled, it will not have any effect.

Copy link
Collaborator

@ivan-nginx ivan-nginx Apr 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's will be in default class style. It was hard to do this?

<div class="post-body{% if theme.han %} han-init-context{% endif %}" itemprop="articleBody">

Copy link
Contributor Author

@geekrainy geekrainy Apr 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your suggestion. :) 756c49c

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In ideal, this switches must be anywhere on any custom options.

@ivan-nginx
Copy link
Collaborator

References to #1558 #1222 #698.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants