templates for self-hosting game jams (or any other kind of jam tbh)
1<header>
2 <h1>{!! $siteName !!}</h1>
3 <p class="hosted">Hosted by <a href="host link" target="_blank">host name</a> • <a href="hashtag link" target="_blank">#</a></p>
4 @if (is_home())
5 <div class="joined">
6 <span class="count" id="joinedCount">
7
8 </span>
9 <span class="caption">Joined</span>
10 </div>
11 @else
12 @php
13 $entries = get_posts([
14 'post_type' => 'game',
15 'status' => 'published',
16 'posts_per_page' => -1
17 ]);
18 $entry_count = count($entries);
19 @endphp
20 <div class="entries">
21 <span class="count" id="entryCount">{{ $entry_count }}</span>
22 <span class="caption">{{ $entry_count !== 1 ? 'Entries' : 'Entry' }}</span>
23 </div>
24 @endif
25 <nav>
26 <ul>
27 <li><a href="#" target="_blank" class="current">title</a></li>
28 </ul>
29 </nav>
30</header>