diff --git a/.eleventy.js b/.eleventy.js index 98082aa..3da1568 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,6 +1,14 @@ module.exports = function (eleventyConfig) { // eleventyConfig.addPlugin(EleventyHtmlBasePlugin); + eleventyConfig.setLiquidOptions({ + // greedy: false, + // trimOutputLeft: true, + // trimOutputRight: true, + // trimTagLeft: true, + // trimTagRight : true, + }); + eleventyConfig.setNunjucksEnvironmentOptions({ // throwOnUndefined: true, trimBlocks: true @@ -43,9 +51,7 @@ module.exports = function (eleventyConfig) { includes: "../templates", data: "../data" }, - markdownTemplateEngine: "njk", - htmlTemplateEngine: "njk", - templateFormats: ["html", "njk", "md"], + templateFormats: ["html", "liquid", "njk", "md"] // pathPrefix: './demo/' - } + }; }; diff --git a/source/screens/hello.md b/source/screens/hello.md new file mode 100644 index 0000000..d6ff3be --- /dev/null +++ b/source/screens/hello.md @@ -0,0 +1,10 @@ +--- +title: "Hello World" +tags: + - demoIndex +layout: hippie/world.liquid +--- + +# {{ title }} + +This is a simple example for a *screen* written in Markdown, using Liquid *templates*. \ No newline at end of file diff --git a/source/templates/hippie/world.liquid b/source/templates/hippie/world.liquid new file mode 100644 index 0000000..ca935dc --- /dev/null +++ b/source/templates/hippie/world.liquid @@ -0,0 +1,11 @@ + + + + + {{ title }} + + + +{{ content }} + + \ No newline at end of file