File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 7777
7878theme :
7979 name : material
80+ custom_dir : overrides
8081 language : zh
8182 features :
8283 - search.highlight
@@ -143,3 +144,4 @@ extra_javascript:
143144 # - https://polyfill.io/v3/polyfill.min.js?features=es6
144145 - https://polyfill.alicdn.com/v3/polyfill.min.js?features=es6
145146 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
147+
Original file line number Diff line number Diff line change 1+ <!-- 原有页面内容 -->
2+ {{ page.content }}
3+
4+ <!-- Giscus 评论区 -->
5+ {% if page and page.meta and page.meta.comments != false %}
6+ {# 可选:如果 MD 文件开头有 --- comments: false ---,则隐藏 #}
7+ {% endif %}
8+ < h2 id ="__comments "> 讨论区</ h2 >
9+ < div class ="giscus "> </ div >
10+
11+ <!-- Giscus 脚本 -->
12+ < script src ="https://giscus.app/client.js "
13+ data-repo ="oceanbase/miniob "
14+ data-category ="Comments "
15+ data-mapping ="pathname "
16+ data-strict ="0 "
17+ data-reactions-enabled ="1 "
18+ data-emit-metadata ="0 "
19+ data-input-position ="bottom "
20+ data-theme ="preferred_color_scheme "
21+ data-lang ="zh-CN "
22+ crossorigin ="anonymous "
23+ async >
24+ </ script >
25+
26+ <!-- 可选:自定义 CSS(嵌入 style 标签) -->
27+ < style >
28+ .giscus {
29+ margin-top : 2em ;
30+ border : 1px solid # e1e4e8 ;
31+ border-radius : 8px ;
32+ }
33+ .giscus-frame {
34+ width : 100% ;
35+ height : 500px ; /* 可调整高度 */
36+ }
37+ </ style >
You can’t perform that action at this time.
0 commit comments