diff --git a/CHANGELOG.md b/CHANGELOG.md index 2caa284..54d12e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.9.1] - 2024-08-08 +### Added +- Option to customize the favicon. + ## [0.9.0] - 2024-08-01 ### Changed - Ability to collapse/expande tree nodes [#9] @@ -129,6 +133,7 @@ First version [#8]: https://github.com/lumeland/theme-simple-wiki/issues/8 [#9]: https://github.com/lumeland/theme-simple-wiki/issues/9 +[0.9.1]: https://github.com/lumeland/theme-simple-wiki/compare/v0.9.0...v0.9.1 [0.9.0]: https://github.com/lumeland/theme-simple-wiki/compare/v0.8.2...v0.9.0 [0.8.2]: https://github.com/lumeland/theme-simple-wiki/compare/v0.8.1...v0.8.2 [0.8.1]: https://github.com/lumeland/theme-simple-wiki/compare/v0.8.0...v0.8.1 diff --git a/plugins.ts b/plugins.ts index 0775d26..069bc95 100644 --- a/plugins.ts +++ b/plugins.ts @@ -8,12 +8,19 @@ import footnotes from "https://deno.land/x/lume_markdown_plugins@v0.7.0/footnote import prism from "lume/plugins/prism.ts"; import date from "lume/plugins/date.ts"; import basePath from "lume/plugins/base_path.ts"; -import favicon from "lume/plugins/favicon.ts"; +import favicon, { Options as FaviconOptions } from "lume/plugins/favicon.ts"; import { alert } from "npm:@mdit/plugin-alert@0.8.0"; import "lume/types.ts"; -export default function () { +export interface Options { + /** + * Options for the favicon plugin. + */ + favicon?: FaviconOptions; +} + +export default function (options: Options = {}) { return (site: Lume.Site) => { site.use(nav()) .use(title()) @@ -24,7 +31,7 @@ export default function () { .use(prism()) .use(resolveUrls()) .use(date()) - .use(favicon()) + .use(favicon(options.favicon)) .use(basePath()) .data("layout", "layout.vto") .data("date", "Git Last Modified")