Make all section headers anchors

This commit is contained in:
thiloho
2024-08-24 21:43:15 +02:00
parent b7601f46bb
commit 079b6d8f8a
11 changed files with 75 additions and 37 deletions

View File

@@ -17,8 +17,10 @@
title={data.website.title}
previewContent={data.home.main_content}
>
<section>
<h2>Create article</h2>
<section id="create-article">
<h2>
<a href="#create-article">Create article</a>
</h2>
<Modal id="create-article" text="Create article">
<h3>Create article</h3>
@@ -44,8 +46,10 @@
</section>
{#if data.totalArticleCount > 0}
<section>
<h2>All articles</h2>
<section id="all-articles">
<h2>
<a href="#all-articles">All articles</a>
</h2>
<details>
<summary>Search & Sort & Filter</summary>

View File

@@ -35,8 +35,10 @@
"Put some markdown content in main content to see a live preview here"}
previewScrollTop={textareaScrollTop}
>
<section>
<h2>Edit article</h2>
<section id="edit-article">
<h2>
<a href="#edit-article">Edit article</a>
</h2>
<form
method="POST"