Skip to content

Commit

Permalink
option to customize the favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 8, 2024
1 parent a96bfd8 commit c269eca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
13 changes: 10 additions & 3 deletions plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ import footnotes from "https://deno.land/x/[email protected]/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/[email protected]";

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())
Expand All @@ -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")
Expand Down

0 comments on commit c269eca

Please sign in to comment.