change few settings

This commit is contained in:
M Sarmad Qadeer
2022-07-31 11:46:25 +05:00
parent 333883603c
commit cc1c1b8d2b
4 changed files with 31 additions and 32 deletions
+26
View File
@@ -43,3 +43,29 @@ stack.yaml.lock
# Temporary test files
tests/tmp
logs/
# for website
website/node_modules/
# Generated files
website/package/generated*
# Ignore build tool output, e.g. code coverage
website/.nyc_output/
website/coverage/
# Ignore API documentation
website/api-docs/
# Ignore folders from source code editors
website/.vscode
website/.idea
# Ignore eleventy output when doing manual tests
website/_site/
website/package-lock.json
# Ignore test files
website/.cache
website/test/stubs-layout-cache/_includes/*.js
+1 -2
View File
@@ -8,9 +8,8 @@ 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) {
eleventyConfig.addCollection('blogs', function (collection) {
return collection.getFilteredByGlob('src/blog/*.md');
});
-25
View File
@@ -1,25 +0,0 @@
# Generated files
package/generated*
# Ignore installed npm modules
node_modules/
# Ignore build tool output, e.g. code coverage
.nyc_output/
coverage/
# Ignore API documentation
api-docs/
# Ignore folders from source code editors
.vscode
.idea
# Ignore eleventy output when doing manual tests
_site/
package-lock.json
# Ignore test files
.cache
test/stubs-layout-cache/_includes/*.js
+4 -5
View File
@@ -7,11 +7,10 @@
<title>Document</title>
</head>
<body>
{% for post in collections.posts %}
{{ post.data.title }}
<a href="{{ post.url }}">{{ post.data.title }} sss</a>
{{ post.templateContent }}
{% for blog in collections.blogs %}
{{ blog.data.title }}
<a href="{{ blog.url }}">{{ blog.data.title }} sss</a>
<!-- {{ blog.templateContent }} -->
{% endfor %}
</body>
</html>