Skip to content

Commit

Permalink
Merge pull request #95 from dandi/add_table_of_contents
Browse files Browse the repository at this point in the history
add table of contents
  • Loading branch information
bendichter authored Jul 2, 2024
2 parents b308a64 + a41c8c2 commit 778cdfd
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.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 778cdfd

Please sign in to comment.