1
0
Files
www.erictaylor.me/template.html
2025-11-22 09:40:19 -05:00

133 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc-monospace-v1.0.1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
$for(author-meta)$
<meta name="author" content="$author-meta$" />
$endfor$
$if(date-meta)$
<meta name="dcterms.date" content="$date-meta$" />
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
$endif$
$if(description-meta)$
<meta name="description" content="$description-meta$" />
$endif$
<link rel="icon" type="image/png" href="http://erictaylor.me/files/img/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="http://erictaylor.me/files/img/favicon.svg" />
<link rel="shortcut icon" href="http://erictaylor.me/files/img/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="http://erictaylor.me/files/img/apple-touch-icon.png" />
<link rel="manifest" href="http://erictaylor.me/files/img/site.webmanifest" />
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
$for(header-includes)$
$header-includes$
$endfor$
$if(math)$
$math$
$endif$
</head>
<body>
$for(include-before)$
$include-before$
$endfor$
<table class="header">
<tr>
<td colspan="2" rowspan="2" class="width-auto">
<h1 class="title">$title$</h1>
<span class="subtitle">$subtitle$</span>
</td>
<th>Version</th>
<td class="width-min">$version$</td>
</tr>
<tr>
<th>Updated</th>
<td class="width-min"><time style="white-space: pre;">$date$</time></td>
</tr>
</table>
$if(abstract)$
<div class="abstract">
<div class="abstract-title">$abstract-title$</div>
$abstract$
</div>
$endif$
$if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
$endif$
$table-of-contents$
</nav>
$endif$
$body$
$for(include-after)$
$include-after$
$endfor$
$if(enable-response)$
<h2>Reply to this! (Via Email)</h2>
<form action=mailto:eric@taylors.life>
<label for=subject>Topic/subject</label>
<input name=subject placeholder="What do you want to tell about?" value="My Thoughts on $title$">
<label for=body>Feedback (required)</label>
<div class="grid">
<textarea style="height: 250px;" name=body placeholder="What are you thinking?" required></textarea>
</div>
<button type=submit>Send (opens your email client)</button>
</form>
$endif$
<table>
<tr>
<td class="width-auto">
<a style="text-decoration: none;" href="http://erictaylor.me">Home</a>
<a style="text-decoration: none;" href="http://erictaylor.me/blog/index.html">Blog</a>
<a style="text-decoration: none;" href="http://erictaylor.me/matrix/index.html?skipIntro=false">爪闩ㄒ尺工乂</a>
<a style="text-decoration: none;" href="">©Copyright $year$</a>
<span onclick="toggleTheme()" class="theme-toggle" title="Toggle theme">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-sun" viewBox="0 0 16 16">
<path d="M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708"/>
</svg>
</span>
</td>
</tr>
</table>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Check for saved theme preference, otherwise use system preference
const theme = localStorage.getItem('theme') ||
(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
// Apply theme
document.documentElement.setAttribute('data-theme', theme);
// Add anchor links to headers
document.querySelectorAll('h1, h2, h3, h4, h5, h6').forEach(heading => {
if (heading.id) {
const anchor = document.createElement('a');
anchor.href = '#' + heading.id;
anchor.className = 'header-anchor';
anchor.textContent = '#';
const headingText = heading.textContent || '';
anchor.setAttribute('aria-label', 'Link to header' + headingText);
heading.appendChild(anchor);
}
});
});
function toggleTheme() {
const currentTheme = document.documentElement.getAttribute('data-theme');
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
}
</script>
</body>
</html>