Skip to content

Commit fd37498

Browse files
authored
Merge pull request #54 from moiSentineL/new_pipeline
revamp
2 parents 5be0fe3 + e3e0411 commit fd37498

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4531
-942
lines changed

.eleventy.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ async function landimageShortcode(
5050
return processImage(src, alt, sizes, [900, 1500]);
5151
}
5252

53+
54+
5355
// Heading Anchor configuration
5456
const position = {
5557
false: "push",
@@ -86,6 +88,18 @@ module.exports = function (eleventyConfig) {
8688
eleventyConfig.addPlugin(pluginRss);
8789
eleventyConfig.addPlugin(readingTime);
8890

91+
eleventyConfig.addPairedShortcode("card", function(content) {
92+
const [title, ...descLines] = content.trim().split("\n");
93+
const description = descLines.join("<br>").trim();
94+
return `
95+
<div class="card">
96+
<div class="cardtitle">${title}</div>
97+
<div class="carddesc">${description}</div>
98+
</div>
99+
`;
100+
});
101+
102+
89103
eleventyConfig.ignores.delete("**/README.md/**");
90104

91105
// Configure front matter parsing
@@ -175,20 +189,6 @@ module.exports = function (eleventyConfig) {
175189
return coll;
176190
});
177191

178-
eleventyConfig.addCollection("mathposts", function (collection) {
179-
const colle = collection.getFilteredByGlob("src/blog/math/*.md");
180-
181-
for (let i = 0; i < colle.length; i++) {
182-
const prevPostmath = colle[i - 1];
183-
const nextPostmath = colle[i + 1];
184-
185-
colle[i].data["prevPostmath"] = prevPostmath;
186-
colle[i].data["nextPostmath"] = nextPostmath;
187-
}
188-
189-
return colle;
190-
});
191-
192192
eleventyConfig.addCollection("mypages", function (collection) {
193193
const page_collection = collection.getFilteredByGlob("src/pages/*.md");
194194

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ The config is in `.eleventy.js`
1818

1919
## License
2020

21-
This work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/).
21+
🧠 Content: All blog posts, essays, and writings are © [Nibir Sankar](https://nibirsan.org/).
2222

23-
You are free to:
23+
Please do not reuse without permission.
24+
**Some specific posts may be Creative Commons licensed — they’ll be labeled.**
2425

25-
- Share — copy and redistribute the material in any medium or format
26-
- Adapt — remix, transform, and build upon the material
27-
The licensor cannot revoke these freedoms as long as you follow the license terms.
28-
29-
The licensor cannot revoke these freedoms as long as you follow the license terms.
26+
💻 Code: This site’s code is licensed under the MIT License. See [LICENSE](./LICENSE) for details.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"scripts": {
55
"watch:sass": "sass --watch src/styles:_site/css",
66
"build:sass": "sass src/styles:_site/css",
7-
"watch:eleventy": "npx @11ty/eleventy --serve",
8-
"build:eleventy": "npx @11ty/eleventy",
7+
"watch:eleventy": "npx eleventy --serve",
8+
"build:eleventy": "npx eleventy",
99
"start": "npm-run-all build:sass --parallel watch:*",
1010
"build": "npm-run-all build:*"
1111
},
@@ -32,5 +32,6 @@
3232
"markdown-it-video": "^0.6.3",
3333
"npm-run-all": "^4.1.5",
3434
"sass": "^1.75.0"
35-
}
35+
},
36+
"packageManager": "[email protected]+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
3637
}

0 commit comments

Comments
 (0)