Skip to content

Commit cded7de

Browse files
1v9stevenjoezhang
authored andcommitted
Remove Han support (#912)
1 parent 386639d commit cded7de

File tree

6 files changed

+2
-25
lines changed

6 files changed

+2
-25
lines changed

_config.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,6 @@ math:
528528
copy_tex_js: //cdn.jsdelivr.net/npm/katex@0/dist/contrib/copy-tex.min.js
529529
copy_tex_css: //cdn.jsdelivr.net/npm/katex@0/dist/contrib/copy-tex.min.css
530530

531-
# Han Support
532-
# Dependencies: https://github.com/theme-next/theme-next-han
533-
han: false
534-
535531
# Pangu Support
536532
# Dependencies: https://github.com/theme-next/theme-next-pangu
537533
# For more information: https://github.com/vinta/pangu.js
@@ -1129,13 +1125,6 @@ vendors:
11291125
# canvas_ribbon: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-ribbon@1/canvas-ribbon.js
11301126
canvas_ribbon:
11311127

1132-
# Internal version: 3.3.0
1133-
# See: https://github.com/ethantw/Han
1134-
# Example:
1135-
# han: //cdn.jsdelivr.net/npm/han-css@3/dist/han.min.css
1136-
# han: //cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/han.min.css
1137-
han:
1138-
11391128
# Internal version: 4.0.7
11401129
# See: https://github.com/vinta/pangu.js
11411130
# Example:

layout/_macro/post.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
{#################}
264264
{### POST BODY ###}
265265
{#################}
266-
<div class="post-body{% if theme.han %} han-init-context{% endif %}{% if post.direction && post.direction.toLowerCase() === 'rtl' %} rtl{% endif %}" itemprop="articleBody">
266+
<div class="post-body{% if post.direction && post.direction.toLowerCase() === 'rtl' %} rtl{% endif %}" itemprop="articleBody">
267267

268268
{# Gallery support #}
269269
{% if post.photos and post.photos.length %}

layout/_partials/head/head.swig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424
<link rel="stylesheet" href="{{ pace_css_uri }}"/>
2525
{% endif %}
2626

27-
{% if theme.han %}
28-
{% set Han_uri = url_for(theme.vendors._internal + '/Han/dist/han.min.css?v=3.3') %}
29-
{% if theme.vendors.han %}
30-
{% set Han_uri = theme.vendors.han %}
31-
{% endif %}
32-
<link rel="stylesheet" href="{{ Han_uri }}"/>
33-
{% endif %}
34-
3527
{% if theme.disable_baidu_transformation %}
3628
<meta http-equiv="Cache-Control" content="no-transform"/>
3729
<meta http-equiv="Cache-Control" content="no-siteapp"/>

layout/page.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{#################}
2929
{### PAGE BODY ###}
3030
{#################}
31-
<div class="post-body{% if theme.han %} han-init-context{% endif %}{% if page.direction && page.direction.toLowerCase() === 'rtl' %} rtl{% endif %}">
31+
<div class="post-body{% if page.direction && page.direction.toLowerCase() === 'rtl' %} rtl{% endif %}">
3232
{# tagcloud page support #}
3333
{% if page.type === 'tags' %}
3434
<div class="tag-cloud">

source/css/_common/components/third-party/han.styl

Lines changed: 0 additions & 3 deletions
This file was deleted.

source/css/_common/components/third-party/third-party.styl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@import "gitment" if hexo-config('gitment.enable');
22
@import "gitalk" if hexo-config('gitalk.enable');
3-
@import "han" if hexo-config('han');
43
@import "localsearch";
54
@import "algolia-search" if hexo-config('algolia_search.enable');
65
@import "needsharebutton" if hexo-config('needmoreshare2.enable');

0 commit comments

Comments
 (0)