Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config update #1

Open
marekdedic opened this issue Sep 8, 2021 · 0 comments
Open

Config update #1

marekdedic opened this issue Sep 8, 2021 · 0 comments

Comments

@marekdedic
Copy link

Když jsem se to snažil rozchodit, narazil jsem na nějaké chyby, tohle by je mělo opravit...

diff --git a/src/index.phtml b/src/index.phtml
index 68d9084..2db572e 100644
--- a/src/index.phtml
+++ b/src/index.phtml
@@ -27,29 +27,29 @@
 	<ul class="project-list">
         <?php /** @var array $data */
 
-        foreach ($data as $p): ?>
+        foreach ($data['projects'] as $p): ?>
 			<li class="project card">
 				<div class="mark-wrap">
-                    <?php foreach ($p['config']['tags'] as $tag): ?>
+                    <?php foreach ($p['info']['tags'] as $tag): ?>
 						<mark><?= $tag ?></mark>
                     <?php endforeach; ?>
 				</div>
-				<h3><?= $p['config']['name'] ?></h3>
+				<h3><?= $p['info']['name'] ?></h3>
 				<div>
 					<p>
-                        <?php foreach ($p['config']['links'] as $link): ?>
+                        <?php foreach ($p['info']['links'] as $link): ?>
 							<i class="fa fa-link"></i>
 							<a href="<?= $link['uri'] ?>"><?= $link['type'] ?></a>
                         <?php endforeach; ?>
 					</p>
 				</div>
 				<div>
-                    <?php foreach ($p['config']['maintainers'] as $maintainer): ?>
+                    <?php foreach ($p['info']['maintainers'] as $maintainer): ?>
 						<p><i class="fa fa-envelope"></i>
 							<a href="mailto:<?= $maintainer['email'] ?>"><?= $maintainer['name'] ?></a></p>
                     <?php endforeach; ?>
 				</div>
-				<p><?= $p['config']['description'] ?></p>
+				<p><?= $p['info']['description'] ?></p>
 				<div>
 					<p>Issues:</p>
                     <?php foreach ($p['issues'] as $issue): ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant