2024-11-26
This commit is contained in:
@@ -87,7 +87,7 @@ module.exports = function(eleventyConfig) {
|
||||
// Shortcodes
|
||||
eleventyConfig.addPairedShortcode(
|
||||
"prologue",
|
||||
function(content) { return `<h2>Prologue</h2><section class="prologue">${md.render(content)}</section>` }
|
||||
function(content) { return `<h1>Prologue</h1><hr><section class="prologue">${md.render(content)}</section>` }
|
||||
);
|
||||
eleventyConfig.addPairedShortcode(
|
||||
"masthead",
|
||||
@@ -102,7 +102,7 @@ module.exports = function(eleventyConfig) {
|
||||
);
|
||||
eleventyConfig.addPairedShortcode(
|
||||
"alternateTitles",
|
||||
function(content) { return `<section class="alternate-titles"><h2>Alternate Titles</h2>${md.render(content)}</section>` }
|
||||
function(content) { return `<section class="alternate-titles"><h1>Alternate Titles</h1><hr>${md.render(content)}</section>` }
|
||||
);
|
||||
|
||||
eleventyConfig.addTransform("htmlmin", (content, outputPath) => {
|
||||
|
||||
Reference in New Issue
Block a user