Skip to content

Commit

Permalink
sync back fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed May 18, 2024
1 parent 0c0f94a commit 27968c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/components/markdown/Link.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ if(!external){
}
const ext = file_ext(node.url)
console.log("-----------------------")
console.log(ext)
const is_model3d = (ext === "glb")
const is_table = (ext === "xlsx")
Expand Down
2 changes: 1 addition & 1 deletion src/pages/[...url].astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export async function getStaticPaths(){
}
const headings = (Object.hasOwn(entry.data,"toc")&&entry.data.toc == false)?[]:entry.data.headings
---
<Layout title={entry.title} headings={headings} >
<Layout title={entry.data.title} headings={headings} >
<AstroMarkdown node={entry.tree} data={entry.data} />
</Layout>
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ const entry = await getEntry({path:"home/readme.md"})
const not_empty = !(Object.keys(entry.tree).length == 0)
const headings = (Object.hasOwn(entry.data,"toc")&&entry.data.toc == false)?[]:entry.data.headings
---
<Layout title={entry.title} headings={headings} >
<Layout title={entry.data.title} headings={headings} >
{not_empty&&
<AstroMarkdown node={entry.tree} data={entry.data} />
}
Expand Down

0 comments on commit 27968c6

Please sign in to comment.