Comments (5)
打扰了,搞定了, iissnan/hexo-theme-next#1112
from hugo-theme-next.
@maxchendt 多谢您的关注。在您提供解决办法基础之上,我也在侧边的TOC列表上自动加上序列了。
https://github.com/xtfly/hugo-theme-next/blob/master/static/js/toc.js
function toc(parent, prefex) {
parent.children("ul").each(function () {
$ul = $(this);
$ul.children("li").each(function () {
$li = $(this);
listStr = prefex
if ($li.children("a").length > 0) {
if (listStr != "") { listStr += "."}
listStr += ($li.index() + 1);
$li.html(listStr + " " + $li.html());
toc($li, listStr)
} else {
toc($li, listStr)
}
});
});
}
var $t = $("#TableOfContents");
toc($t, "");
from hugo-theme-next.
再打扰下, iissnan/hexo-theme-next#680 (comment) 里面让部分段落不缩进,有什么想法否?
from hugo-theme-next.
搞定!特定段落不缩进,在该段落进行标记
<script type="text/javascript">
$('p:contains("ooNoIndent00")').each(function() {
var text = $(this).html();
$(this).css('text-indent', '0em');
$(this).html(text.replace('ooNoIndent00', ''));
});
</script>
from hugo-theme-next.
awsl,发现我的标题都被双重标号了,原来是这个issue...应该有个选项可以选择是否自动标号。我现在的做法就是把theme/next/static/js/toc.js
删了
from hugo-theme-next.
Related Issues (16)
- 提交到Next的主存储库 HOT 1
- 请教下代码块样式问题 HOT 1
- 首页文章预览内容把 markdown 解析成纯文本有点不好看,不知道有没有办法解决? HOT 1
- search.js not working when baseUrl contains child path. 当baseUrl不是根域名(.io)时搜索功能失效 HOT 2
- 为什么打开博客后,会自动刷新一次 HOT 5
- 左下角的星球我想删掉等一些问题 HOT 9
- 代码高亮渲染不清楚 HOT 6
- 有置顶功能吗
- Unable to find archetypes directory for theme "next" HOT 3
- 基于楼主分享的主题做了更多的优化,欢迎大家使用评论
- 我这几年折腾NexT已经快寿命减半了,没想到迁移到hugo还有NexT!!!!=(
- Code highlighting not work HOT 3
- 如何指定封面?
- Is it possible to add latex support and maybe flowchart feature of markdown? Also disqus or livere comment system? Maybe google analytics? HOT 2
- 可以考虑接入第三方评论系统么? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-next.