add doctor who cards

update license links
lotsa cleanup
This commit is contained in:
2024-01-27 23:17:56 -05:00
parent c92d8c3897
commit afcf37a284
64 changed files with 1525 additions and 574 deletions

View File

@@ -0,0 +1,164 @@
<%
const titleLink = (site?.base_uri) ? site.base_uri : '/';
const { entriesToList = [], pageCount, pageNum } = page;
-%>
<%- include('partials/top') %>
<body class='postMainIndex'>
<a name="top" id="topAnchor" class="topAnchor"></a>
<div class="page">
<header id="header" class="pageHeader pageSection">
<div class="pageHeader-titleBlock clearfix">
<h1 class="siteTitle"><a href="<%= titleLink %>" class="siteTitle-link"><%= site.title %></a></h1>
</div>
<%- include('partials/navmain') %>
</header>
<main id="content" class="pageMain pageSection">
<div class="pageMain-inner">
<%- include('partials/embed_switch') %>
<%- include('functions') -%>
<% if (page?.title && (page.render_opts || '').indexOf('no_title') == -1) { -%>
<h2>
Journal Entries
</h2>
<% if (pageCount > 1) { -%>
<p>
(Page <%= pageNum %> of <%= pageCount %>)
</p>
<% } -%>
<p>
Assorted journal / blog entries.
</p>
<hr class="feedLine">
<p>
<% } -%>
<% if (entriesToList) { -%>
<% entriesToList.forEach((entry) => { -%>
<% if (entry?.content_type === 'journal') { -%>
<%
const {
author = {},
content = '',
date_pub = '',
description = '',
path = '',
readTime = '',
tags = [],
title = '',
tldr = ''
} = entry;
-%>
<article class="update journal h-entry js-update">
<div class="p-author author h-card vcard authorHidden">
<% if (author?.site && author?.name) { -%>
<% if (author?.photo) { -%>
<a href="<%= author.site %>"><img class="u-photo" src="<%= author.photo %>"></a>
<% } -%>
<a class="p-name fn u-url url" rel="author" href="<%= author.site %>"><%= author.name %></a>
<% } else if (site?.author?.site && site?.author?.name) { -%>
<% if (site?.author?.photo) { -%>
<a href="<%= site.author.site %>"><img class="u-photo" src="<%= site.author.photo %>"></a>
<% } -%>
<a class="p-name fn u-url url" rel="author" href="<%= site.author.site %>"><%= site.author.name %></a>
<% } -%>
</div>
<h3 id="<%= snakeCase(title) %>" >
<a class="p-name u-url" href="/<%= path %>"><%= title %></a>
</h3>
<% if (tldr || description) { -%>
<p><i>TL;DR &mdash; <%- tldr || description %></i></p>
<% } -%>
<% if (readTime) { -%>
<p class="journal readTime">
<span class="icon glasses-icon">&#x1f453;</span> <%= readTime %>
</p>
<% } -%>
<% if (content) { -%>
<div class="e-content">
<%- content %>
</div>
<% } -%>
<footer class="update-footer clearfix">
<a rel="bookmark" href="/<%= path %>" class="u-url update-footer-link update-footer-time">
<time datetime="<%= date_pub %>"
class="dt-published published js-pubDate pubDate"
><%= prettyDate(date_pub) %></time>
</a>
<!--
<span class="update-citation">[iew.us q/1g0k2]
<a class="u-shortlink" type="text/html" rel="shortlink" href="https://iew.us/q/1g0k2">&#128279;</a>
</span>
-->
<% if (Array.isArray(tags) && tags.length) { -%>
<div class="update-tags">
<span class="icon folder-icon">&#x1f4c1;</span>
<% tags.forEach((tag) => { -%>
<a class="boxLink" href="/journal/tags/<%= tag %>/index.html">
#<span class="p-category category"><%= tag %></span>
</a>
<% }) -%>
</div>
<% } -%>
</footer>
</article>
<p class="backLink">
<a class="boxLink" href="#top">Top</a>
</p>
<hr class="feedLine">
<% } -%>
<% }); -%>
<% } -%>
<%- include('partials/pageMenu') %>
</div>
</main>
<%- include('partials/journal/menusub') %>
<%- include('partials/bio') %>
<%- include('partials/footer') %>
</div>
<%- include('partials/bottom') %>

View File

@@ -34,7 +34,7 @@
and is licensed under a
<a
rel="license"
href="/licenses/cc-by-sa.html">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
href="/licenses/cc-by-sa/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
</p>

View File

@@ -5,19 +5,25 @@
<ul class="asideMenu-list">
<li class="asideMenu-item">
<a class="asideMenu-link <%=page.name === 'cc0' ? 'isCurrent' : ''%>"
href="/licenses/cc0.html">
CC0 1.0
href="/licenses/cc0/">
CC0
</a>
</li>
<li class="asideMenu-item">
<a class="asideMenu-link <%=page.name === 'cc-by-sa' ? 'isCurrent' : ''%>"
href="/licenses/cc-by-sa.html">
href="/licenses/cc-by-sa/">
CC-BY-SA
</a>
</li>
<li class="asideMenu-item">
<a class="asideMenu-link <%=page.name === 'cc-by-sa' ? 'isCurrent' : ''%>"
href="/licenses/gpl/">
GPL
</a>
</li>
<li class="asideMenu-item">
<a class="asideMenu-link <%=page.name === 'mit' ? 'isCurrent' : ''%>"
href="/licenses/mit.html">
href="/licenses/mit/">
MIT
</a>
</li>

View File

@@ -3,7 +3,7 @@
<a
href="/magic-cards/"
class="asideMenu-title-link <%=page.name === 'index' ? 'isCurrent' : ''%> backLink-titleLink"
>Custom Magic Cards</a
>Custom Magic Cards, Proxies, and Tokens</a
>
</h4>
@@ -32,5 +32,13 @@
Custom Tokens
</a>
</li>
<li class="asideMenu-item">
<a
class="asideMenu-link <%=page.name === 'doctor-who' ? 'isCurrent' : ''%>"
href="/magic-cards/doctor-who.html"
>
Doctor Who
</a>
</li>
</ul>
</aside>

View File

@@ -11,7 +11,7 @@
<%- include('thur/menusub') %>
<% } %>
<% } else if (page.section && page.subsection && page.section === 'web') { %>
<% if (page.subsection === 'licenses' && page.name !== 'index') { %>
<% if (page.subsection === 'licenses' && page.short_code !== '1c') { %>
<%- include('licenses/menusub') %>
<% } else if (page.subsection === 'linklists' && page.name !== 'index') { %>
<%- include('linklists/menusub') %>

View File

@@ -21,7 +21,9 @@
<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" />
-->
<!-- Courtesy of https://www.favicon-generator.org/ -->
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-icon-57x57.png">