This commit is contained in:
2024-07-27 18:05:00 +05:30
parent 82720deb5c
commit 36678c036a
11 changed files with 3241 additions and 0 deletions

3
www/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
node_modules/
/_site/

4
www/_data/site.json Normal file
View File

@@ -0,0 +1,4 @@
{
"name": "",
"desc": ""
}

20
www/_includes/base.liquid Normal file
View File

@@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<title>{{ site.name }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="{{ desc | default: site.desc }}">
<link rel="stylesheet" href="/pico.min.css">
</head>
<body class=".grid" style="min-width:100dvh;min-width:100vh;">
<header>
<h1>{{ site.name }}</h1>
</header>
<main>
{{ content }}
</main>
<footer>
</footer>
</body>
</html>

27
www/eleventy.config.cjs Normal file
View File

@@ -0,0 +1,27 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
module.exports = function(eleventyConfig){
eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
eleventyConfig.addPassthroughCopy({
"./node_modules/@picocss/pico/css/pico.min.*": "./",
}, {debug: true})
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addFilter(
"debug",
(content) =>
`<pre>
${require("node:util").inspect(content)}
</pre>`
);
eleventyConfig.addDataExtension("yml, yaml",
contents => require('js-yaml').load(contents)
)
if(process.env.NODE_ENV==="production"){
eleventyConfig.addGlobalData('date', 'git Last Modified');
}
}

3
www/index.md Normal file
View File

@@ -0,0 +1,3 @@
---
layout: base.liquid
---

11
www/package.json Normal file
View File

@@ -0,0 +1,11 @@
{
"scripts": {
"dev": "eleventy --serve",
"build": "eleventy"
},
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
"@picocss/pico": "^1.5.10",
"js-yaml": "^4.1.0"
}
}

1410
www/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff