remove unnecessary things

This commit is contained in:
M Sarmad Qadeer
2022-07-28 21:34:28 +05:00
parent d191466455
commit 333883603c
4 changed files with 22 additions and 18 deletions
+5
View File
@@ -8,6 +8,11 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("src/js");
eleventyConfig.addPassthroughCopy("src/contact");
eleventyConfig.addPassthroughCopy("src/app-demo");
// eleventyConfig.addPassthroughCopy({"../blog":"../src/blog"});
eleventyConfig.addCollection('posts', function (collection) {
return collection.getFilteredByGlob('src/blog/*.md');
});
eleventyConfig.addWatchTarget("src/css");
eleventyConfig.addWatchTarget("markdown/");
-1
View File
@@ -1 +0,0 @@
comming from markdown
-17
View File
@@ -1,17 +0,0 @@
[
{
"title": "Hello 1",
"link": "./contact",
"linkText": "go to contact"
},
{
"title": "Hello 2",
"link": "./contact",
"linkText": "Go To Contact"
},
{
"title": "Hello 3",
"link": "./contact",
"linkText": "go to contact page"
}
]
+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
{% for post in collections.posts %}
{{ post.data.title }}
<a href="{{ post.url }}">{{ post.data.title }} sss</a>
{{ post.templateContent }}
{% endfor %}
</body>
</html>