-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
679ea03
commit bbcd26e
Showing
7 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
"imports": { | ||
"lume/": "https://deno.land/x/[email protected]/", | ||
"lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/cms@v0.3.10/" | ||
"lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/cms@v0.5.9/" | ||
}, | ||
"lock": false, | ||
"tasks": { | ||
"lume": "echo \"import 'lume/cli.ts'\" | deno run -A -", | ||
"build": "deno task lume", | ||
"serve": "deno task lume -s", | ||
"update-deps": "deno run -A 'https://deno.land/x/[email protected]/cli.ts' update deno.json" | ||
"cms": "deno task lume cms", | ||
"update-deps": "deno run -A 'https://deno.land/x/[email protected]/cli.ts' update deno.json" | ||
}, | ||
"compilerOptions": { | ||
"types": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ import prism from "lume/plugins/prism.ts"; | |
import date from "lume/plugins/date.ts"; | ||
import basePath from "lume/plugins/base_path.ts"; | ||
import favicon, { Options as FaviconOptions } from "lume/plugins/favicon.ts"; | ||
import phosphor, { | ||
Options as IconOptions, | ||
} from "https://deno.land/x/[email protected]/phosphor.ts"; | ||
import { alert } from "npm:@mdit/[email protected]"; | ||
|
||
import "lume/types.ts"; | ||
|
@@ -18,6 +21,11 @@ export interface Options { | |
* Options for the favicon plugin. | ||
*/ | ||
favicon?: FaviconOptions; | ||
|
||
/** | ||
* Options for the phosphor plugin. | ||
*/ | ||
icons?: IconOptions; | ||
} | ||
|
||
export default function (options: Options = {}) { | ||
|
@@ -33,6 +41,10 @@ export default function (options: Options = {}) { | |
.use(date()) | ||
.use(favicon(options.favicon)) | ||
.use(basePath()) | ||
.use(phosphor({ | ||
...options.icons, | ||
name: "icon", | ||
})) | ||
.data("layout", "layout.vto") | ||
.data("date", "Git Last Modified") | ||
.data("order", 0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
menu_links: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters