Giter VIP home page Giter VIP logo

Comments (13)

cofess avatar cofess commented on June 12, 2024 1

说明文档里有,自己找一下
toc: true # 启用内容索引

from hexo-theme-pure.

fennecs avatar fennecs commented on June 12, 2024 1

把layout/_partial/post/nav.ejs,layout/_partial/sidebar-toc.ejs里的&& post.toc删掉

from hexo-theme-pure.

cofess avatar cofess commented on June 12, 2024

文章内容结构?文章内容索引吗?

from hexo-theme-pure.

GuoXingGitHub avatar GuoXingGitHub commented on June 12, 2024

嗯 是的 想问下怎么显示 万分感谢

from hexo-theme-pure.

xiaocuigit avatar xiaocuigit commented on June 12, 2024

你好,设置了toc:true 但还是不显示文章内容索引,请问怎么处理?

from hexo-theme-pure.

cofess avatar cofess commented on June 12, 2024

@xiaocuigit 文章内容要有标题,h1 h2 h3 h4 h5 h6

from hexo-theme-pure.

xiaocuigit avatar xiaocuigit commented on June 12, 2024

我文章中用标题了还是不显示,文章结构如下:

一级目录

二级目录

正文

from hexo-theme-pure.

xiaocuigit avatar xiaocuigit commented on June 12, 2024

我知道了,得在文章里面添加这个:toc: true # 启用内容索引

from hexo-theme-pure.

unpluggedcoder avatar unpluggedcoder commented on June 12, 2024

_config.yml 的toc设置能否全局生效?不需要去每个文章里设置toc: true

from hexo-theme-pure.

fuyunjinglong avatar fuyunjinglong commented on June 12, 2024

主题中开启toc: true # 是否开启文章章节目录导航
md文件如下:

title: 重载与重写
date: 2019-09-01 19:33:16
categories:

  • 后端
  • JavaEE
  • java基础
    toc: true

#1.重载与重写

但是还是没有文章目录出现

from hexo-theme-pure.

fuyunjinglong avatar fuyunjinglong commented on June 12, 2024

nav.js
<% if (!index && theme.config.toc) { %>
sidebar-toc.ejs
<% if (!index && theme.config.toc) { %>
还是没有文章目录,这个index什么作用?

from hexo-theme-pure.

fuyunjinglong avatar fuyunjinglong commented on June 12, 2024

sidebar-toc.ejs把collapse这个样式去掉可以了,这个样式写了一个display:none!important; 不知道为什么要隐藏

from hexo-theme-pure.

Changzw avatar Changzw commented on June 12, 2024

sidebar-toc.ejs把collapse这个样式去掉可以了,这个样式写了一个display:none!important; 不知道为什么要隐藏

collapse 删掉了可以还是没有目录呀?

from hexo-theme-pure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.