Personal Copy and Paste Codes
2026-07-13
Copy and paste elements for this site
Extra Formatting For GitHub
Front Matter
---
layout: post
title: "Why Cookbooks Matter"
date: 2026-06-29
---
New Front Matter
---
layout: post
title: "Prologue Wrap-up"
date: 2026-07-13
category: "fiction"
tags: [tag1, tag2, tag3, tag4, tag5, tag6, tag7]
mode: "author"
author: Otto Brinkmeier
---
Comments Code
<!-- Comments Section -->
<div id="comments-section">
<h3>π¬ Comments</h3>
<div id="utterances-container"></div>
</div>
<script>
// === UTTERANCES WITH DYNAMIC THEME ===
(function() {
'use strict';
let currentTheme = null;
function loadUtterances(theme) {
const container = document.getElementById('utterances-container');
if (!container) return;
// Clear container
container.innerHTML = '';
// Create new script
const script = document.createElement('script');
script.src = 'https://utteranc.es/client.js';
script.setAttribute('repo', 'plebware/plebware.github.io');
script.setAttribute('issue-term', 'pathname');
script.setAttribute('theme', theme);
script.setAttribute('crossorigin', 'anonymous');
script.async = true;
// Add to container
container.appendChild(script);
currentTheme = theme;
}
function getTheme() {
const isDark = document.body.classList.contains('dark-theme');
return isDark ? 'github-dark' : 'github-light';
}
// Initialize on page load
function init() {
const theme = getTheme();
loadUtterances(theme);
}
// Handle theme changes
function onThemeChange() {
const newTheme = getTheme();
if (newTheme !== currentTheme) {
loadUtterances(newTheme);
}
}
// Listen for theme changes via custom event
document.addEventListener('themeChanged', onThemeChange);
// Also listen for class changes as backup
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.attributeName === 'class') {
onThemeChange();
}
});
});
// Start everything when DOM is ready
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', function() {
init();
observer.observe(document.body, {
attributes: true,
attributeFilter: ['class']
});
});
} else {
init();
observer.observe(document.body, {
attributes: true,
attributeFilter: ['class']
});
}
})();
</script>
Badges
<div align="center">
<img src="https://github.com/plebware/plebware.github.io/actions/workflows/YOUR_FILENAME.yml/badge.svg" alt="Build Status">
<img src="https://img.shields.io/github/last-commit/plebware/plebware.github.io" alt="Last Commit">
<img src="https://img.shields.io/github/deployments/plebware/plebware.github.io/github-pages" alt="Deployment Status">
</div>
π¬ Comments