File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,7 @@ import styles from "../styles/blogs.scss"
44// @ts -ignore
55import script from "../scripts/blogpatterns.inline"
66
7- interface Options {
8- links : Record < string , string >
9- components : QuartzComponent [ ]
10- }
11-
12- export default ( ( opts ?: Options ) => {
7+ export default ( ( ) => {
138 const Blogs : QuartzComponent = ( props : QuartzComponentProps ) => {
149 /**
1510 * Sorts all files in descending order based on their creation date.
@@ -56,7 +51,7 @@ export default ((opts?: Options) => {
5651 < ul class = "overflow" >
5752 { data . toc ?. map ( ( tocEntry ) => (
5853 < li key = { tocEntry . slug } class = { `depth-${ tocEntry . depth } ` } >
59- < a href = { `#${ tocEntry . slug } ` } data-for = { tocEntry . slug } >
54+ < a href = { `${ data . slug } #${ tocEntry . slug } ` } data-for = { tocEntry . slug } >
6055 { tocEntry . text }
6156 </ a >
6257 </ li >
You can’t perform that action at this time.
0 commit comments