diff --git a/src/pages/index.astro b/src/pages/index.astro index 6fdbdc4..9d12bd0 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,9 +5,12 @@ import {getEntry} from 'content-structure' console.log(`index> home page`) 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 --- - + {not_empty&& + + }