Skip to content

Commit

Permalink
add table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Jul 2, 2024
1 parent b308a64 commit fd15edc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,18 @@
<body>
<div class="container">
<h1>DANDI Datasets</h1>

<div class="toc">
<h2>Table of Contents</h2>
<ul>
{% for dandiset in dandisets %}
<li><a href="#dandiset-{{ dandiset.id }}">{{ dandiset.metadata.name }}</a></li>
{% endfor %}
</ul>
</div>

{% for dandiset in dandisets %}
<div class="dandiset">
<div id="dandiset-{{ dandiset.id }}" class="dandiset">
<h2>{{ dandiset.metadata.name }}</h2>
<p><strong>ID:</strong> {{ dandiset.id }}</p>
<p><strong>Description:</strong> {{ dandiset.metadata.description }}</p>
Expand Down

0 comments on commit fd15edc

Please sign in to comment.