generated from open-innovations/oi-lume-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import lume from "lume/mod.ts"; | ||
import nunjucks from "lume/plugins/nunjucks.ts"; | ||
import nunjucks from "lume/plugins/nunjucks.ts"; // Lume 2.0 requires us to add Nunjucks | ||
import base_path from "lume/plugins/base_path.ts"; | ||
import date from "lume/plugins/date.ts"; | ||
import metas from "lume/plugins/metas.ts"; | ||
import postcss from "lume/plugins/postcss.ts"; | ||
import { walkSync } from 'std/fs/mod.ts'; | ||
import sitemap from "lume/plugins/sitemap.ts"; // To build a site map | ||
|
||
// Importing the OI Lume charts and utilities | ||
import oiCharts from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
@@ -18,8 +19,10 @@ const site = lume({ | |
location: new URL("https://constituencies.open-innovations.org/"), | ||
}); | ||
|
||
// Lume 2.0 requires us to add Nunjucks | ||
site.use(nunjucks()); | ||
site.use(sitemap({ | ||
query: "!draft" | ||
})); | ||
|
||
// Register a series of extensions to be loaded by the OI CSV loader | ||
// https://lume.land/docs/core/loaders/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters