first commit

This commit is contained in:
Sonika 2024-02-12 10:41:00 +05:30
commit 2de0b46a48
7 changed files with 2491 additions and 0 deletions

4
.eleventy.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = function(eleventyConfig) {
// Add any custom Eleventy configuration here
};

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/node_modules/
/public/build/
.DS_Store

19
_includes/base-layout.njk Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
</head>
<body>
<header>
<h1>{{ title }}</h1>
</header>
<main>
{{ content | safe }}
</main>
<footer>
<p>&copy; {{ year }}</p>
</footer>
</body>
</html>

21
_site/index.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
</head>
<body>
<header>
<h1>Home</h1>
</header>
<main>
<h1>Welcome to My Eleventy Project!</h1>
<p>Hello World!</p>
</main>
<footer>
<p>&copy; </p>
</footer>
</body>
</html>

7
index.md Normal file
View File

@ -0,0 +1,7 @@
---
layout: base-layout.njk
title: Home
---
# Welcome to My Eleventy Project!
This is the homepage of my Eleventy project.

2421
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "eleventy_practice_project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@11ty/eleventy": "^2.0.1"
}
}