Skip to content

Commit

Permalink
Update icon and add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesdring committed Jun 21, 2024
1 parent d6a54a5 commit 6c09d7b
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 8 deletions.
23 changes: 20 additions & 3 deletions _config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Check deno.json for import maps - this is where versions of modules are specified.
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 favicon from "lume/plugins/favicon.ts";
import metas from "lume/plugins/metas.ts";
import postcss from "lume/plugins/postcss.ts";
import prism from "lume/plugins/prism.ts";

/**
* Import languages
Expand Down Expand Up @@ -65,9 +66,25 @@ site.use(metas());
*/
site.use(basePath());

/**
* The `favicon` plugin creates appropriate favicons from an SVG source.
*/
site.use(favicon({
input: "/assets/images/oi-logo.svg",
}));

/**
* Map some remote files into the build tree. These can be included or copied as needed
*/
site.remoteFile(
"assets/images/oi-logo.svg",
"https://open-innovations.org/resources/images/logos/oi-square-4.svg",
);

/**
* Copy the asset folders over to the built site
*/
site.copy('assets/fonts/');
site.copy("assets/images/");
site.copy("assets/fonts/");

export default site;
186 changes: 185 additions & 1 deletion deno.lock

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

2 changes: 1 addition & 1 deletion src/_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metas:
description: "=description"

header:
logo: https://open-innovations.org/resources/images/logos/oi-square-13.svg
logo: /assets/images/oi-logo.svg

techniques:
- key: core
Expand Down
6 changes: 3 additions & 3 deletions src/techniques.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default function* ({ search, techniques }: Lume.Data & {
* Definition of a technique entry
*/
type Technique = {
key: string;
title: string;
description: string;
key: string;
title: string;
description: string;
};

/**
Expand Down

0 comments on commit 6c09d7b

Please sign in to comment.