{{ title }}
Published on: {{ date | readableDate }}
- +{{ content | safe }}
diff --git a/.eleventy.js b/.eleventy.js index c7d2dbc..1c8e872 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,4 +1,5 @@ module.exports = function(eleventyConfig) { + // Pass through static assets from the "src" directory eleventyConfig.addPassthroughCopy("src/css"); eleventyConfig.addPassthroughCopy("src/js"); @@ -16,6 +17,15 @@ module.exports = function(eleventyConfig) { }); }); + // Shortcode for creating a callout box + // This is a "paired shortcode" which means it has a start and end tag. + eleventyConfig.addPairedShortcode("callout", function(content, title) { + return `
${title}
+${content}
+A demonstration of what's possible with this powerful static site generator.
+Published on: {{ date | readableDate }}
- +