Update to use HOSR
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<%- 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",
|
||||
};
|
||||
|
||||
%>
|
||||
|
||||
<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 %>"
|
||||
id="<%= snakeCase(page.title) %>"
|
||||
name="<%= snakeCase(page.title) %>"
|
||||
><%= page.title %></a>
|
||||
<% } -%>
|
||||
</h2>
|
||||
|
||||
|
||||
|
||||
<div class="rulesMenu">
|
||||
<div class="rulesVersion">
|
||||
|
||||
Version 0.9.1 / 2023-04-22
|
||||
|
||||
</div>
|
||||
<ul>
|
||||
<% Object.keys(menuLinksByOption).forEach((key) => { -%>
|
||||
<li>
|
||||
<a
|
||||
class="<%=page.path.endsWith(menuLinksByOption[key]) ? 'isCurrent' : '' %>"
|
||||
href="<%=menuLinksByOption[key]%>"
|
||||
><%= key %></a>
|
||||
</li>
|
||||
<% }); -%>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user