Site updates for the weekend
This commit is contained in:
33
src/layouts/partials/backLink.ejs
Normal file
33
src/layouts/partials/backLink.ejs
Normal file
@@ -0,0 +1,33 @@
|
||||
<%
|
||||
var titlesBySection = {
|
||||
// top-level
|
||||
astral: "Astral Info",
|
||||
campaign: "Campaign Info",
|
||||
classes: "Character Classes",
|
||||
"magic-items": "Magic Items",
|
||||
planes: "Other Planes",
|
||||
races: "Character Races",
|
||||
rules: "House Rules",
|
||||
|
||||
// planes
|
||||
elemental: "Elemental Planes",
|
||||
material: "Material Planes",
|
||||
transcendental: "Transcendental Planes",
|
||||
|
||||
};
|
||||
%>
|
||||
|
||||
<% if (page.subsection && page.path && !page.path.endsWith(`${page.subsection}/index.html`)) { %>
|
||||
<div class="sectionBackLink-wrapper">
|
||||
<a href="./index.html" class="sectionBackLink">
|
||||
< Back to <%= titlesBySection[page.subsection] ?? page.subsection.charAt(0).toUpperCase() + page.subsection.slice(1) %>
|
||||
</a>
|
||||
</div>
|
||||
<% } else if (page.section && page.path && !page.path.endsWith(`${page.section}/index.html`)) { -%>
|
||||
<div class="sectionBackLink-wrapper">
|
||||
<a href="<%=page.subsection ? '..' : '.'-%>/index.html" class="sectionBackLink">
|
||||
< Back to <%= titlesBySection[page.section] ?? page.section.charAt(0).toUpperCase() + page.section.slice(1) %>
|
||||
</a>
|
||||
</div>
|
||||
<% } -%>
|
||||
|
@@ -9,7 +9,11 @@
|
||||
<script type="text/javascript" src="/scripts/5-fontfaceobserver.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/6-classlist.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/7-dayjs.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/scripts.js"></script>
|
||||
<script type="module">
|
||||
// using module import to target ES6+ (95% global coverage in 2023)
|
||||
import { onLoad } from './scripts/scripts.js';
|
||||
onLoad?.();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@@ -39,8 +39,11 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
Fonts: <a href="https://fonts.google.com/specimen/Unbounded">Unbounded by NaN</a> and
|
||||
<a href="https://fonts.google.com/specimen/Raleway">Raleway by Matt McInerney, Pablo Impallari, and Rodrigo Fuenzalida</a>;
|
||||
both used under the SIL Open Font License, Version 1.1.
|
||||
</p>
|
||||
<p>
|
||||
Background image by <a href="https://pixabay.com/illustrations/ai-art-ai-generated-outdoor-7717011/">AlanFrijns / Pixabay</a>, used under the <a href="https://pixabay.com/service/terms/">Pixabay License</a>.
|
||||
</p>
|
||||
|
@@ -7,6 +7,18 @@
|
||||
<span></span>
|
||||
</label>
|
||||
|
||||
<div class="searchBox">
|
||||
<form method="get" class="searchBox-form" id="searchForm" action="https://duckduckgo.com/" role="search">
|
||||
<input id="searchQuery" class="searchBox-query" type="search" value="" name="q" maxlength="255" role="searchbox">
|
||||
<input type="hidden" name="kl" value="us-en" /><!-- language -->
|
||||
<input type="hidden" name="kh" value="1" /><!-- force https -->
|
||||
<input type="hidden" name="kae" value="r" /><!-- theme = retri -->
|
||||
<input type="hidden" name="k1" value="1" /><!-- tracker-less ads -->
|
||||
<input type="hidden" name="sites" value="<%= site.base_uri %>"/>
|
||||
<input aria-label="Search" type="submit" class="searchBox-go" value="🔍">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<nav class="navMenu" role="navigation">
|
||||
|
||||
<ul>
|
||||
@@ -22,9 +34,9 @@
|
||||
</li>
|
||||
<li class="hasSubMenu"><a href="/planes/index.html" aria-haspopup="true">Other Planes</a>
|
||||
<ul class="dropdown" aria-label="submenu">
|
||||
<li><a href="/planes/elemental.html">Elemental Planes</a></li>
|
||||
<li><a href="/planes/material.html">Material Planes</a></li>
|
||||
<li><a href="/planes/outer.html">Outer Planes</a></li>
|
||||
<li><a href="/planes/elemental/index.html">Elemental Planes</a></li>
|
||||
<li><a href="/planes/material/index.html">Material Planes</a></li>
|
||||
<li><a href="/planes/transcendental/index.html">Transcendental Planes</a></li>
|
||||
<!--<li><a href="/planes/infernus.html">Infernus</a></li>-->
|
||||
</ul>
|
||||
</li>
|
||||
@@ -41,7 +53,7 @@
|
||||
<li><a href="/classes/warlock.html">Warlock</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="hasSubMenu"><a href="/" aria-haspopup="true">Races</a>
|
||||
<li class="hasSubMenu"><a href="/races/index.html" aria-haspopup="true">Races</a>
|
||||
<ul class="dropdown" aria-label="submenu">
|
||||
<li><a href="/races/automaton.html">Automaton</a></li>
|
||||
<li><a href="/races/dracokin.html">Dracokin</a></li>
|
||||
@@ -76,24 +88,6 @@
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!--
|
||||
<ul class="navMenu-list">
|
||||
<li class="navMenu-hasSubnav">
|
||||
<a href="/"><span class="navMenu-subTitle-short">Game</span><span class="navMenu-subTitle-long">The Game</span></a>
|
||||
<ul class="navMenu-list navMenu-lev2 navMenu-game">
|
||||
<li>
|
||||
<a href="/clash.html" class="navMenu-list-clash">Clash of the Gods</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/cthulhu.html">Cthulhu Rises</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/nemesis.html">Nemesis</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
-->
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
|
@@ -21,26 +21,26 @@
|
||||
<base href="<%= getUrl() %>" />
|
||||
<title><%= page.title ? page.title + ' | ' : ''%><%= page.sub_title ? page.sub_title + ' | ' : ''%><%= site.title %></title>
|
||||
|
||||
<link rel="pgpkey" type="application/pgp-keys" title="PGP Public Key" href="/files/public.aexpk" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#f03733">
|
||||
<meta name="msapplication-TileColor" content="#8fffff">
|
||||
<meta name="theme-color" content="#8fffff">
|
||||
|
||||
<!-- Courtesy of https://www.favicon-generator.org/ -->
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicons/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicons/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicons/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="/images/favicons/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/images/favicons/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicons/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png">
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#9aa8bc">
|
||||
<meta name="msapplication-TileImage" content="/images/favicons/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#9aa8bc">
|
||||
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#f03733">
|
||||
<meta name="msapplication-TileColor" content="#8fffff">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
|
||||
|
||||
<meta name="description" content="<%= getPageField('description') %>">
|
||||
<meta name="author" content="<%= (page.author || site.author).name %>">
|
||||
|
Reference in New Issue
Block a user