Scaffold site
This commit is contained in:
commit
1490e708b6
34
.eleventy.js
Normal file
34
.eleventy.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
|
||||
import markdownIt from "markdown-it";
|
||||
import markdownItFootnote from "markdown-it-footnote";
|
||||
import markdownItAnchor from "markdown-it-anchor";
|
||||
|
||||
const MARKDOWN_OPTIONS = {
|
||||
html: true,
|
||||
breaks: true,
|
||||
linkify: true,
|
||||
typographer: true,
|
||||
};
|
||||
|
||||
const md = new markdownIt(MARKDOWN_OPTIONS)
|
||||
.use(markdownItFootnote)
|
||||
.use(markdownItAnchor);
|
||||
|
||||
export default function (eleventyConfig) {
|
||||
// Libraries
|
||||
eleventyConfig.setLibrary("md", md);
|
||||
|
||||
// Plugins
|
||||
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||
|
||||
// Passthrough copies
|
||||
eleventyConfig.addPassthroughCopy({ "./src/assets": "assets" });
|
||||
eleventyConfig.addWatchTarget("./src/assets/css");
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: "src",
|
||||
output: "_site",
|
||||
},
|
||||
};
|
||||
}
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules/
|
||||
_site/
|
4802
package-lock.json
generated
Normal file
4802
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
29
package.json
Normal file
29
package.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"name": "gil",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"watch:sass": "sass --watch scss:src/assets/css",
|
||||
"build:sass": "sass scss:src/assets/css",
|
||||
"watch:eleventy": "eleventy --serve",
|
||||
"build:eleventy": "eleventy",
|
||||
"start": "npm-run-all build:sass --parallel watch:*",
|
||||
"build": "npm-run-all build:*"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "kalanggam",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@11ty/eleventy-navigation": "^0.3.5",
|
||||
"luxon": "^3.5.0",
|
||||
"markdown-it": "^14.1.0",
|
||||
"markdown-it-anchor": "^9.2.0",
|
||||
"markdown-it-footnote": "^4.0.0",
|
||||
"sass": "^1.83.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^3.0.0",
|
||||
"npm-run-all": "^4.1.5"
|
||||
},
|
||||
"type":"module"
|
||||
}
|
4
src/index.md
Normal file
4
src/index.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
# Hello world
|
||||
|
||||
This is a test
|
Loading…
Reference in a new issue