Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ブログで目次を表示 #132

Open
miyaji255 opened this issue Jul 20, 2024 · 0 comments
Open

ブログで目次を表示 #132

miyaji255 opened this issue Jul 20, 2024 · 0 comments

Comments

@miyaji255
Copy link
Contributor

miyaji255 commented Jul 20, 2024

ブログページに目次を追加する
zenn, qiitaのように横に表示する

headingsは次のように取得できます

const entry = await getEntry('blog', 'post-1');
const { Content, headings } = await render(entry);

h1があればh1とh2を目次に表示し、h1がなければh2とh3を目次に表示してください

MUST

  • 全ての返答は日本語で返してください
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant