permalinks
[mdref/mdref] / views / index.phtml
index acab9e27e026f215aa44922877d3da0819f7a57f..0baafb841237b52860385c196c26d413a8e974b1 100644 (file)
@@ -7,10 +7,10 @@
 <?php elseif (isset($refs)) : ?>
        <?php foreach ($refs as $repo) : /* @var \mdref\Repo $repo */ ?>
                <?php foreach ($repo as $entry) : /* @var \mdref\Entry $entry */ ?>
-               <h2>
+               <h2 id="<?= $anchor($entry->getTitle()) ?>">
                        <a href="<?= $esc($entry->getName()) ?>"
                        ><?= $esc($entry->getTitle()) ?></a></h2>
                <div><?= $quick($entry->getIntro()) ?></div>
                <?php endforeach; ?>
        <?php endforeach; ?>
-<?php endif; ?>
\ No newline at end of file
+<?php endif; ?>