Skip to content

Commit

Permalink
Setup metas plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesdring committed Jun 20, 2024
1 parent be9da4d commit a6fac23
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import lume from "lume/mod.ts";
import postcss from "lume/plugins/postcss.ts";
import prism from "lume/plugins/prism.ts";
import basePath from "lume/plugins/base_path.ts";
import metas from "lume/plugins/metas.ts";

/**
* Import languages
Expand Down Expand Up @@ -46,6 +47,13 @@ site.loadData(
);
site.filter("resultTable", resultTable);

/**
* Set up the metas plugin for SEO.
*
* See https://lume.land/plugins/metas/#installation
*/
site.use(metas());

/**
* The `base_path` plugin prefixes URLs in the generated site with a path derived from
* the `location` setting confiured when the `site` object is created.
Expand Down
2 changes: 2 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/_data.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Set default layout for whole site
layout: layout/page.vto
repo: https://github.com/open-innovations/lume-expo
repo: https://github.com/open-innovations/lume-expo

# The metas data entry is used for SEO, in conjunction with the `metas` plugin
# https://lume.land/plugins/metas/
metas:
site: OI Lume Expo
title: "=title"
description: "=description"

0 comments on commit a6fac23

Please sign in to comment.