templates for self-hosting game jams (or any other kind of jam tbh)
at main 1.2 kB view raw
1<header> 2 <h1>{{ site.title | safe }}</h1> 3 <p class="hosted">Hosted by <a href="{{ site.host_link }}" target="_blank">{{ site.host_name }}</a> &bull; {% if site.jam_hashtag != "" %}<a href="{{ site.jam_hashtag_link }}" target="_blank">#{{ site.jam_hashtag }}</a>{% endif %}</p> 4 {% if section and section.components | length == 0 %} 5 <div class="joined"> 6 <span class="count" id="joinedCount"> 7 8 </span> 9 <span class="caption">Joined</span> 10 </div> 11 {% else %} 12 {% assign games = get_section(path="games/_index.md") %} 13 <div class="entries"> 14 <span class="count" id="entryCount">{{ games.pages | length }}</span> 15 <span class="caption">Entries</span> 16 </div> 17 {% endif %} 18 <nav> 19 <ul> 20 {% for link in site.navmenu %} 21 {% if link.path != '/' %} 22 {% assign link_full = link.path | append: '.html' %} 23 {% else %} 24 {% assign link_full = '/' %} 25 {% endif %} 26 <li><a href="{% unless link.external_link %}{{ baseurl }}{{ link.path }}{% else %}{{ link.external_url }}{% endunless %}"{% if link.newwin && link.newwin == true %} target="_blank"{% endif %}{% if link.path and page.url == link_full %} class="current"{% endif %}>{{ link.name }}</a></li> 27 {% endfor %} 28 </ul> 29 </nav> 30</header>