Skip to content

Commit

Permalink
add a table index for the showcase section
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Oct 28, 2024
1 parent 9a380bb commit 2085260
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/showcase/index.vto
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
layout: layouts/base.vto
title: JCP Site TOP
date: Git Last Modified
description: "Index of the showcase page, showing a list of works with details."
priority: 0.5
type: index
templateEngine: [vto]
---
<!-- ===== START LAYOUT: HOME ===== -->

<h1 class="mw10 pa4">Showcase ページ一覧</h1>

{{# <article class="fl w-100 bg-white"> #}}
<article class="cf pa4 mw10 center f6 lh-copy">
<table class="collapse ba br2 b--black-10 pv2 ph3 mt4">
<tr class="striped--near-white">
<th class="pv2 ph3 tl f6 fw6 ttu">Index Order</th>
<th class="pv2 ph3 tl f6 fw6 ttu">Category</th>
<th class="pv2 ph3 tl f6 fw6 ttu">Search Engine Title</th>
<th class="pv2 ph3 tl f6 fw6 ttu">URL</th>
<th class="pv2 ph3 tl f6 fw6 ttu">Index Title</th>
<th class="pv2 ph3 tl f6 fw6 ttu">Index Image</th>
<th class="pv2 ph3 tl f6 fw6 ttu">Index Hide Link</th>
</tr>
{{ for item of search.pages(`type=showcase`, "order=asc") }}
<tr class="striped--near-white">
<td class="pv2 ph3">{{ item.order }}</td>
<td class="pv2 ph3">{{ item.category }}</td>
<td class="pv2 ph3">{{ item.metas.title }}</td>
<td class="pv2 ph3"><a href="{{ item.url }}">{{ item.url }}</a></td>
<td class="pv2 ph3">{{ item.indextitle }}</td>
<td class="pv2 ph3">{{ item.indeximage }}</td>
<td class="pv2 ph3">{{ item.hidelink }}</td>
</tr>
{{ /for }}
</table>
</article>



<div class="cf pa3 mw9 center"><!-- Needed to balance footer spacing --></div>


<!-- ===== END LAYOUT: HOME ===== -->

0 comments on commit 2085260

Please sign in to comment.