-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
11 changed files
with
108 additions
and
78 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
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,8 @@ | ||
import metas from 'lume/plugins/metas.ts' | ||
import minifyHTML from 'lume/plugins/minify_html.ts' | ||
|
||
/** @see {@link https://lume.land/plugins/?status=disabled&html=on} */ | ||
export const html = () => (site: Lume.Site) => | ||
site | ||
.use(metas()) | ||
.use(minifyHTML({ extensions: ['.html', '.css', '.js'] })) |
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,13 @@ | ||
// import nav from 'lume/plugins/nav.ts' | ||
import pagefind from 'lume/plugins/pagefind.ts' | ||
import sitemap from 'lume/plugins/sitemap.ts' | ||
|
||
/** @see {@link https://lume.land/plugins/?status=disabled&nav=on} */ | ||
export const navigation = () => (site: Lume.Site) => | ||
site | ||
// .use(nav()) | ||
.use(sitemap()) | ||
.use(pagefind({ | ||
outputPath: '/search', | ||
ui: { resetStyles: false }, | ||
})) |
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,13 @@ | ||
import unocss from 'lume/plugins/unocss.ts' | ||
import lightningcss from 'lume/plugins/lightningcss.ts' | ||
import options from '../../uno.config.ts' | ||
|
||
/** @see {@link https://lume.land/plugins/?status=disabled&styles=on} */ | ||
export const styles = () => (site: Lume.Site) => | ||
site | ||
.use(unocss({ | ||
options, | ||
cssFile: '/uno.css', | ||
reset: 'tailwind', | ||
})) | ||
.use(lightningcss()) |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
import resolveUrls from 'lume/plugins/resolve_urls.ts' | ||
|
||
/** @see {@link https://lume.land/plugins/?status=disabled&urls=on} */ | ||
export const urls = () => (site: Lume.Site) => site.use(resolveUrls()) |
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,13 @@ | ||
// import date from 'lume/plugins/date.ts' | ||
import fff from 'lume/plugins/fff.ts' | ||
import readInfo from '../patched/reading_info.ts' | ||
|
||
/** @see {@link https://lume.land/plugins/?status=disabled&utils=on} */ | ||
export const utils = () => (site: Lume.Site) => | ||
site | ||
// .use(date()) | ||
.use(fff({ | ||
date: 'created', // TODO: published | ||
getGitDate: true, | ||
})) | ||
.use(readInfo()) |
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,33 @@ | ||
import type { PluggableList } from 'lume/deps/remark.ts' | ||
import rehypeSlug from 'npm:rehype-slug@5.1.0' | ||
import rehypeAutolinkHeadings from 'npm:rehype-autolink-headings@7.1.0' | ||
import rehypePrettyCode from 'npm:rehype-pretty-code@0.12.6' | ||
// shikiji transformers | ||
// import { transformerNotationDiff } from 'npm:shikiji-transformers@0.10.1' | ||
import { transformerTwoslash } from 'npm:shikiji-twoslash@0.10.1' | ||
|
||
export const rehypePlugins: PluggableList = [ | ||
// deno-lint-ignore no-explicit-any | ||
rehypeSlug as any, | ||
rehypeAutolinkHeadings, | ||
[ | ||
rehypePrettyCode, | ||
{ | ||
defaultLang: 'plaintext', | ||
keepBackground: false, | ||
theme: { | ||
// light: 'material-theme-lighter', | ||
// dark: 'material-theme-darker', | ||
light: 'github-light', | ||
dark: 'github-dark', | ||
}, | ||
transformers: [ | ||
// transformerNotationDiff(), | ||
transformerTwoslash(), | ||
// transformerTwoslash({ | ||
// explicitTrigger: true, | ||
// }), | ||
], | ||
}, | ||
], | ||
] |
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,6 @@ | ||
import type { PluggableList } from 'lume/deps/remark.ts' | ||
import remarkSmartyPants from 'npm:remark-smartypants@2.1.0' | ||
|
||
export const remarkPlugins: PluggableList = [ | ||
remarkSmartyPants, | ||
] |