2023-04-24 22:13:58 +00:00
|
|
|
<%- include('../functions') -%>
|
|
|
|
<%
|
|
|
|
var menuLinksByOption = {
|
|
|
|
Basics: "/rules/basics.html",
|
|
|
|
Combat: "/rules/combat.html",
|
|
|
|
Adventuring: "/rules/adventuring.html",
|
|
|
|
Magic: "/rules/magic.html",
|
|
|
|
"Referees Only": "/rules/referees.html",
|
|
|
|
};
|
|
|
|
|
2023-05-01 22:07:24 +00:00
|
|
|
var title = (page.title ?? '').replace('HOSR ', '');
|
|
|
|
|
2023-04-24 22:13:58 +00:00
|
|
|
%>
|
|
|
|
|
|
|
|
<h2 class="pageTitle rulesTitle">
|
|
|
|
<a
|
|
|
|
class="pageTitle-link"
|
|
|
|
href="/<%= page.path %>"
|
|
|
|
>Heroic Old-School Roleplaying</a>
|
|
|
|
|
|
|
|
<% if (!page.path.endsWith(`${page.subsection}/index.html`)) { -%>
|
|
|
|
<br />
|
|
|
|
<a
|
|
|
|
class="pageTitle-link pageTitle-sublink"
|
|
|
|
href="/<%= page.path %>"
|
2023-05-01 22:07:24 +00:00
|
|
|
id="<%= snakeCase(title) %>"
|
|
|
|
name="<%= snakeCase(title) %>"
|
|
|
|
><%= title %></a>
|
2023-04-24 22:13:58 +00:00
|
|
|
<% } -%>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="rulesMenu">
|
|
|
|
<div class="rulesVersion">
|
|
|
|
|
2024-02-05 19:27:48 +00:00
|
|
|
Version 0.12.2 / 2024-02-01
|
2023-07-03 20:16:31 +00:00
|
|
|
<!--
|
|
|
|
<%=site.version ?? '0.0.0' %>
|
|
|
|
<%=site.lastUpdated ?? '0.0.0' %>
|
|
|
|
<%=JSON.stringify(page, null, 2) %>
|
|
|
|
-->
|
2023-04-24 22:13:58 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<ul>
|
|
|
|
<% Object.keys(menuLinksByOption).forEach((key) => { -%>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
class="<%=page.path.endsWith(menuLinksByOption[key]) ? 'isCurrent' : '' %>"
|
|
|
|
href="<%=menuLinksByOption[key]%>"
|
|
|
|
><%= key %></a>
|
|
|
|
</li>
|
|
|
|
<% }); -%>
|
|
|
|
</ul>
|
|
|
|
</div>
|