New color theme
This commit is contained in:
@@ -14,7 +14,9 @@ var titlesBySection = {
|
||||
material: "Material Planes",
|
||||
transcendental: "Transcendental Planes",
|
||||
|
||||
};
|
||||
},
|
||||
unlistedSections = ['main'];
|
||||
|
||||
%>
|
||||
|
||||
<% if (page.subsection && page.path && !page.path.endsWith(`${page.subsection}/index.html`)) { %>
|
||||
@@ -23,7 +25,12 @@ var titlesBySection = {
|
||||
< Back to <%= titlesBySection[page.subsection] ?? page.subsection.charAt(0).toUpperCase() + page.subsection.slice(1) %>
|
||||
</a>
|
||||
</div>
|
||||
<% } else if (page.section && page.section !== 'main' && page.path && !page.path.endsWith(`${page.section}/index.html`)) { -%>
|
||||
<% } else if (page.section && page.section === 'licenses') { -%>
|
||||
<p>
|
||||
The latest version of this license can always be found at <a href="<%=site.url%>/<%=page.path%>"><%=site.url%>/<%=page.path%></a>.
|
||||
</p>
|
||||
|
||||
<% } else if (page.section && !unlistedSections.includes(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) %>
|
||||
|
@@ -6,7 +6,6 @@
|
||||
<script type="text/javascript" src="/scripts/2-es6-promise.auto.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/3-lazy-progressive-enhancement.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/4-js.cookie.min.js"></script>
|
||||
<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="module" src="/scripts/scripts.js"></script>
|
||||
|
46
src/layouts/partials/content_types/issue.ejs
Normal file
46
src/layouts/partials/content_types/issue.ejs
Normal file
@@ -0,0 +1,46 @@
|
||||
<%- include('../../functions') -%>
|
||||
|
||||
<%
|
||||
var
|
||||
articles = page.articles || [],
|
||||
features = site.pages.filter(thePage => thePage.content_type === 'feature') || [],
|
||||
featuresByPath = features.reduce((acc, curr) => {
|
||||
acc[`/${curr.path}`] = curr;
|
||||
return acc;
|
||||
}, {});
|
||||
/*
|
||||
|
||||
|
||||
card_url = "http://gatherer.wizards.com/Pages/Search/Default.aspx?name=+[%22CARD-NAME%22]",
|
||||
detail_url = "http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=",
|
||||
image_url = "/images/magic/commanders/",
|
||||
deck = page.deck || {},
|
||||
info = deck.info || {},
|
||||
cards = deck.cards || [],
|
||||
lands = deck.lands || [],
|
||||
changes = deck.changes || [],
|
||||
starting_lands = info.starting_lands || [],
|
||||
|
||||
commander = info.commander && info.commander_id ?
|
||||
"<li><a href='" + detail_url + info.commander_id + "' target='_blank'>" + info.commander +
|
||||
"</a> <em>(Commander)</em></li>" :
|
||||
"",
|
||||
commander_img = info.commander && info.commander_img ?
|
||||
"<img src='" + image_url + info.commander_img + "' class='magic-commander-img' alt='" + info.commander + " card' />":
|
||||
""
|
||||
;
|
||||
*/
|
||||
-%>
|
||||
<div class="zineIssue-wrapper">
|
||||
<h2 class="zineIssue-title">
|
||||
<%=page.title%>
|
||||
</h2>
|
||||
<% articles.forEach((curr) => { -%>
|
||||
<% var currArticle = featuresByPath[curr] || {}; %>
|
||||
<h2 class="zineIssue-featureTitle">
|
||||
<%=currArticle.title || '' -%>
|
||||
</h2>
|
||||
<%-currArticle.content || '' -%>
|
||||
<hr />
|
||||
<% }) %>
|
||||
</div>
|
@@ -34,7 +34,7 @@
|
||||
and is licensed under a
|
||||
<a
|
||||
rel="license"
|
||||
href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
|
||||
href="/licenses/cc-by-sa.html">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
|
||||
</p>
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
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>.
|
||||
Background image created with <a href="https://labs.openai.com/" target="_blank">DALL-E</a> released under a <a href="/licenses/cc0">CC0</a> license.
|
||||
</p>
|
||||
<a href="#top" class="topLink">Back to Top</a>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user