This commit is contained in:
parent
5d6fa47606
commit
d20952d2fb
8 changed files with 73 additions and 48 deletions
|
|
@ -1,16 +1,20 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<ul class="filter-menu">
|
||||
<?php foreach ($categories as $key => $category): ?>
|
||||
<li>
|
||||
<button data-filter="<?= Str::slug($category) ?>"><?= $category ?></button>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
|
||||
<ul class="projects-index">
|
||||
<li class="filter-menu">
|
||||
<ul>
|
||||
<?php foreach ($categories as $key => $category): ?>
|
||||
<li>
|
||||
<button data-filter="<?= Str::slug($category) ?>"><?= $category ?></button>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<?php foreach ($page->children()->listed()->sortBy('date', 'desc') as $project): ?>
|
||||
<li data-category="<?= Str::slug($project->category()) ?>" data-slug="<?= $project->slug() ?>">
|
||||
<li class="project" data-category="<?= Str::slug($project->category()) ?>" data-slug="<?= $project->slug() ?>">
|
||||
<div class="fix">
|
||||
<button class="project-toggler grid">
|
||||
<span> <?= $project->shownTitle() ?> </span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue