Projects (as shown in docs) on Home

Hi all,
i am setting up a page and would love the homepage to show several sections.
So for example - is it possible to reuse the “projects” page - as show in the docs - on the “home” page (as an extra section)?

I do not want to simply rename the homepage, as i plan more complicated stuff on the way.

Thanks a lot for any ideas.

1 Like

OK i have it! Posting as perhaps useful for somebody:

   <ul class="projects">
   		<?php foreach ($site->grandChildren()->template('project') as $linkedproj): ?>
   			<li>
   				<a href="<?= $linkedproj->url() ?>">
   					<figure>
   						<?= $linkedproj->images()->findBy("template", "cover") ?>
   					<figcaption><?= $linkedproj->title() ?> <small><?= $linkedproj->year() ?></small></figcaption>
   					</figure>
   				</a>
   			</li>
   		<?php endforeach ?>
   		</ul>
1 Like