From a6fac231f096d7800b2a1d14cc14c041868a7fb8 Mon Sep 17 00:00:00 2001 From: Giles Dring Date: Thu, 20 Jun 2024 16:43:40 +0100 Subject: [PATCH] Setup metas plugin --- _config.ts | 8 ++++++++ deno.lock | 2 ++ src/_data.yml | 9 ++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/_config.ts b/_config.ts index 6355720..9bbfb38 100644 --- a/_config.ts +++ b/_config.ts @@ -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 @@ -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. diff --git a/deno.lock b/deno.lock index c96ecf6..12e0a49 100644 --- a/deno.lock +++ b/deno.lock @@ -671,6 +671,7 @@ "https://deno.land/x/lume@v2.2.1/core/source.ts": "5b866c68c7275e9fd195c0461b2f7c8907bf3772b4bd4bbe332b21613623a8ae", "https://deno.land/x/lume@v2.2.1/core/utils/cli_options.ts": "0e48094ef8b89502c53fa597e01238c2ca972f65d2b9b219cca42a3988cba3c6", "https://deno.land/x/lume@v2.2.1/core/utils/concurrent.ts": "cb0775b3d95f3faa356aa3a3e489dccef8807ed93cc4f84fcf5bc81e87c29504", + "https://deno.land/x/lume@v2.2.1/core/utils/data_values.ts": "40cc18575c35d64797b06fb8638920f54d22c650c50e8760756a7ccbaa37da75", "https://deno.land/x/lume@v2.2.1/core/utils/date.ts": "b989369496b9a6fba04cf1dee7f58f157911ae273aa3ca16abf9a047e4e091c2", "https://deno.land/x/lume@v2.2.1/core/utils/digest.ts": "445b387983391af73269686292a65bb677119a25a327776885ff1242a9397ad8", "https://deno.land/x/lume@v2.2.1/core/utils/dom.ts": "d406fb5c48ceb012286d0aff66ef635261eda666de2ce07538c0cf9366b8fecd", @@ -719,6 +720,7 @@ "https://deno.land/x/lume@v2.2.1/plugins/base_path.ts": "ab451b1c6911fbf4f3babf1e41e31500e3402e31b6a0b810418a2f3e1052ccdb", "https://deno.land/x/lume@v2.2.1/plugins/json.ts": "f6429bbd865e3666ef3385fd205fcc92df02ca2c0f74f20baa5c0798a81e1642", "https://deno.land/x/lume@v2.2.1/plugins/markdown.ts": "b0f224dcffa0abeb30af178d7ec21f50515c2a7ccd42a3347aac3bea53c4ca27", + "https://deno.land/x/lume@v2.2.1/plugins/metas.ts": "26dada1735837cd1fa1602a92f5c18f095bcb78e3e009015c0db8a6a76fc41f8", "https://deno.land/x/lume@v2.2.1/plugins/modify_urls.ts": "f2319fd98d60578fe78f4c197aa5d98785234732bbd2287e78a47d15d4a2b641", "https://deno.land/x/lume@v2.2.1/plugins/modules.ts": "19a66398a5494f506458e48b8443a7c4700b7577e8fcc0818c39b1d0530c8950", "https://deno.land/x/lume@v2.2.1/plugins/paginate.ts": "e86617ec1ad491c86bc4866db41f070a6b393e8c2ac94ed28a51ca309f88477d", diff --git a/src/_data.yml b/src/_data.yml index f856a9b..4709aab 100644 --- a/src/_data.yml +++ b/src/_data.yml @@ -1,3 +1,10 @@ # Set default layout for whole site layout: layout/page.vto -repo: https://github.com/open-innovations/lume-expo \ No newline at end of file +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" \ No newline at end of file