nuejs / nue

The Design Engineering Framework for the Web
https://nuejs.org
MIT License
6.11k stars 179 forks source link

`<slot for="content" />` doesn't work #369

Closed nobkd closed 4 weeks ago

nobkd commented 1 month ago

Describe the Bug

<slot for="content" /> is ignored and does not get replaced with the rendered md.

Environment

Minimal Reproduction

layout.html

<main>
  <slot for="content" />
</main>

index.md

# title

result:

<main></main>

expected:

<main>
  <h1>title</h1>
</main>
tipiirai commented 1 month ago

Probably works currently with <slot for="layout.article" />.

Thinking of changing the name to <slot for="layout.content" /> and updating the docs

nobkd commented 4 weeks ago

Closing, as docs are fixed on dev