giscus comments
[mdref/mdref] / views / index.phtml
index d2bd1fe741cb2966216b3da3dec823d167150420..531a87b67bf3d84b3f609c0fc1c66a581a0185ad 100644 (file)
@@ -9,12 +9,12 @@
        <p style="white-space:pre-wrap"><?= $esc($text) ?></p>
 <?php elseif (isset($refs)) : ?>
        <?php foreach ($refs as $repo) : /* @var \mdref\Repo $repo */ ?>
-               <?php foreach ($repo as $entry) : /* @var \mdref\Entry $entry */ ?>
+               <?php foreach ($repo as $root) : /* @var \mdref\Entry $root */ ?>
 
-               <h2 id="<?= $anchor($entry->getTitle()) ?>">
-                       <a href="<?= $esc($entry->getName()) ?>"
-                       ><?= $esc($entry->getTitle()) ?></a></h2>
-               <div><?= $quick($entry->getIntro()) ?></div>
+               <h2 id="<?= $anchor($root->getTitle()) ?>">
+                       <a href="<?= $esc($root->getName()) ?>"
+                       ><?= $esc($root->getTitle()) ?></a></h2>
+               <div><?= $quick($root->getIntro()) ?></div>
                        <?php if ($repo->hasStub($stub)) : ?>
                                <?php include __DIR__ . "/stub.phtml"; ?>
                        <?php endif; ?>