Skip to content

Commit

Permalink
impr: formating of event listings
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdoc committed Mar 26, 2023
1 parent cc288b3 commit 70a7afb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const directoryOutputPlugin = require("@11ty/eleventy-plugin-directory-output");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const svgSprite = require("eleventy-plugin-svg-sprite");
const { EleventyRenderPlugin } = require("@11ty/eleventy");
const shortcodes = require("./src/_utils/11ty.shortcodes.js");
const filters = require("./src/_utils/11ty.filters.js");
const collections = require("./src/_utils/11ty.collections.js");
Expand All @@ -11,6 +12,7 @@ module.exports = function (eleventyConfig) {
// Plugins
// eleventyConfig.addPlugin(directoryOutputPlugin);
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(EleventyRenderPlugin);

eleventyConfig.addPlugin(svgSprite, {
path: "./src/_assets/svg",
Expand Down
7 changes: 6 additions & 1 deletion src/calendar/event.njk
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ eleventyComputed:
<div class="mx-auto lg:container">
<article class="px-4 prose prose-globeBlue lg:prose-xl lg:col-span-3">

<div itemprop="description">{{ event.body }}</div>
<div itemprop="description">

{% renderTemplate "njk,md", event %}
{{ body }}
{% endrenderTemplate %}
</div>

{% if event.data.url %}
<div class="my-8 py-4">
Expand Down

0 comments on commit 70a7afb

Please sign in to comment.