Skip to content

Commit

Permalink
Nested TOC fix (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
uroybd authored Feb 23, 2023
1 parent 486a8a2 commit 717492b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const markdownIt = require("markdown-it");
const fs = require("fs");
const matter = require("gray-matter");
const faviconPlugin = require("eleventy-favicon");
const tocPlugin = require("eleventy-plugin-toc");
const tocPlugin = require("eleventy-plugin-nesting-toc");
const { parse } = require("node-html-parser");

const { headerToId, namedHeadingsFilter } = require("./src/helpers/utils");
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"axios": "^1.2.2",
"dotenv": "^16.0.3",
"eleventy-favicon": "^1.1.2",
"eleventy-plugin-toc": "^1.1.5",
"eleventy-plugin-nesting-toc": "^1.3.0",
"fs-file-tree": "^1.1.1",
"glob": "^8.1.0",
"gray-matter": "^4.0.3",
Expand Down
11 changes: 11 additions & 0 deletions src/site/styles/digital-garden-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,17 @@ ul.task-list {
background-color: var(--background-primary);
padding: 10px;
border-radius: 10px;

ol {
list-style: none;
padding-left: 10px;
border-left: 2px solid var(--background-secondary);
}

& > ol {
padding-left: 0;
border-left: none;
}
}

.toc-container {
Expand Down

0 comments on commit 717492b

Please sign in to comment.