add doctor who cards
update license links lotsa cleanup
This commit is contained in:
@@ -1,192 +0,0 @@
|
||||
---
|
||||
title: Eric's Journal
|
||||
path: /journal/index.html
|
||||
---
|
||||
<% const MAX_POSTS = 6; -%>
|
||||
<% const cwd = (process && process.cwd) ? process.cwd() : ''; -%>
|
||||
<% const titleLink = (site && site.base_uri) ? site.base_uri : '/'; -%>
|
||||
<%- include('../../layouts/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('../../layouts/partials/navmain') %>
|
||||
|
||||
</header>
|
||||
|
||||
<main id="content" class="pageMain pageSection">
|
||||
<div class="pageMain-inner">
|
||||
|
||||
<%- include('../../layouts/partials/embed_switch') %>
|
||||
|
||||
<%- include('../../layouts/functions') %>
|
||||
|
||||
<% if (page?.title && (page?.render_opts || '').indexOf('no_title') == -1) { -%>
|
||||
|
||||
<h2>
|
||||
<a
|
||||
class="titleLink"
|
||||
href="<%= page.path %>"
|
||||
id="<%= snakeCase(page.title) %>"
|
||||
name="<%= snakeCase(page.title) %>"
|
||||
><%= page.title %></a>
|
||||
</h2>
|
||||
|
||||
<p>
|
||||
Below you'll find some of my most recent Journal entries.
|
||||
</p>
|
||||
|
||||
<hr class="feedLine">
|
||||
|
||||
<p>
|
||||
|
||||
<% } -%>
|
||||
<% if (site && site.pages) { -%>
|
||||
<%
|
||||
let
|
||||
curr_post_num = 0,
|
||||
pages = site.pages.sort((a, b) => {
|
||||
if (a.date_pub && b.date_pub) {
|
||||
let
|
||||
a_dt = (new Date(a.date_pub)).getTime(),
|
||||
b_dt = (new Date(b.date_pub)).getTime();
|
||||
if (a_dt < b_dt) {
|
||||
return 1;
|
||||
}
|
||||
if (b_dt < a_dt) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
});
|
||||
-%>
|
||||
|
||||
<% pages.forEach(function(page) { -%>
|
||||
<% if (page.content_type && page.content_type === 'journal' && curr_post_num < MAX_POSTS) { -%>
|
||||
<% curr_post_num++; -%>
|
||||
<article class="update journal h-entry js-update">
|
||||
<div class="p-author author h-card vcard authorHidden">
|
||||
<% if (page.author && page.author.site && page.author.name) { %>
|
||||
<% if (page.author.photo) { %>
|
||||
<a href="<%= page.author.site %>"><img class="u-photo" src="<%= page.author.photo %>"></a>
|
||||
<% } %>
|
||||
<a class="p-name fn u-url url" rel="author" href="<%= page.author.site %>"><%= page.author.name %></a>
|
||||
<% } else if (site.author && 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(page.title) %>" >
|
||||
<a class="p-name u-url" href="/<%= page.path %>"><%= page.title %></a>
|
||||
</h3>
|
||||
|
||||
<% if (page.tldr || page.description) { -%>
|
||||
<p><i>TL;DR — <%- page.tldr || page.description %></i></p>
|
||||
<% } -%>
|
||||
|
||||
<% if (page.readTime) { -%>
|
||||
<p class="journal readTime">
|
||||
<span class="icon glasses-icon">👓</span> <%= page.readTime %>
|
||||
</p>
|
||||
<% } -%>
|
||||
|
||||
<% if (page.content) { -%>
|
||||
<div class="e-content">
|
||||
<%- page.content %>
|
||||
</div>
|
||||
<% } -%>
|
||||
|
||||
<footer class="update-footer clearfix">
|
||||
|
||||
<% if (Array.isArray(page?.tags) && page.tags.length) { -%>
|
||||
|
||||
<div class="update-tags">
|
||||
|
||||
<span class="icon folder-icon">📁</span>
|
||||
|
||||
<% page.tags.forEach((tag, index) => { -%>
|
||||
<span class="p-category category"><%= tag %></span><%= (index < (page.tags.length - 1)) ? ', ' : '' %>
|
||||
<% }) -%>
|
||||
|
||||
</div>
|
||||
|
||||
<% } -%>
|
||||
|
||||
<!--
|
||||
<span class="update-citation">[iew.us q/1g0k2]
|
||||
<a class="u-shortlink" type="text/html" rel="shortlink" href="https://iew.us/q/1g0k2">🔗</a>
|
||||
</span>
|
||||
-->
|
||||
|
||||
<a rel="bookmark" href="/<%= page.path %>" class="u-url update-footer-link update-footer-time">
|
||||
<time datetime="<%= page.date_pub %>"
|
||||
class="dt-published published js-pubDate pubDate"
|
||||
><%= prettyDate(page.date_pub) %></time>
|
||||
</a>
|
||||
|
||||
</footer>
|
||||
|
||||
</article>
|
||||
|
||||
<p class="backLink">
|
||||
<a class="backLink-link" href="#top">Top</a>
|
||||
</p>
|
||||
<hr class="feedLine">
|
||||
|
||||
<% } -%>
|
||||
<% }); -%>
|
||||
<% } -%>
|
||||
</div>
|
||||
|
||||
<div class="postMenu">
|
||||
<h4 class="postMenu-title">
|
||||
<a href="/journal/" class="postMenu-title-link">All Entries By Year</a>
|
||||
</h4>
|
||||
<ul class="postMenu-list">
|
||||
<%
|
||||
if (site && site.pages) {
|
||||
let
|
||||
years = [];
|
||||
site.pages.forEach(function(page) {
|
||||
if (page.content_type && page.content_type === 'journal' && page.date_pub) {
|
||||
let the_year = (new Date(page.date_pub)).getFullYear();
|
||||
if (years.indexOf(the_year) === -1) {
|
||||
years.push(the_year);
|
||||
}
|
||||
}
|
||||
});
|
||||
years = years.sort().reverse();
|
||||
years.forEach((year) => {
|
||||
-%>
|
||||
<li class="postMenu-item">
|
||||
<a class="postMenu-link <%= page.path.indexOf(year) > -1 ? 'isCurrent' : '' %>"
|
||||
href="/journal/<%= year %>/index.html">
|
||||
<%= year %>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<%
|
||||
})
|
||||
}
|
||||
-%>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<%- include('../../layouts/partials/journal/menusub') %>
|
||||
|
||||
<%- include('../../layouts/partials/bio') %>
|
||||
|
||||
<%- include('../../layouts/partials/footer') %>
|
||||
|
||||
</div>
|
||||
|
||||
<%- include('../../layouts/partials/bottom') %>
|
@@ -9,11 +9,8 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<base href="https://itsericwoodward.com/" />
|
||||
<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="<%= site.base_uri %>/images/favicons/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="<%= site.base_uri %>/images/favicons/apple-icon-60x60.png">
|
||||
@@ -58,6 +55,50 @@
|
||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth"/>
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Regular-webfont.eot');
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Regular-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Regular-webfont.woff') format('woff'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Regular-webfont.ttf') format('truetype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Regular-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Italic-webfont.eot');
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Italic-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Italic-webfont.woff') format('woff'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Italic-webfont.ttf') format('truetype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Italic-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Bold-webfont.eot');
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Bold-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Bold-webfont.woff') format('woff'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Bold-webfont.ttf') format('truetype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-Bold-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'exo_2';
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-BoldItalic-webfont.eot');
|
||||
src: url('https://www.itsericwoodward.com/fonts/exo2/Exo2-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-BoldItalic-webfont.woff') format('woff'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-BoldItalic-webfont.ttf') format('truetype'),
|
||||
url('https://www.itsericwoodward.com/fonts/exo2/Exo2-BoldItalic-webfont.svg#exo_2') format('svg');
|
||||
font-weight: 600;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user