Skip to content

Commit b6a7dd9

Browse files
committed
better mathventures code
1 parent f7802b3 commit b6a7dd9

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

src/_layouts/pages/mathpost.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ tags:
2121

2222
<hr>
2323
<div class="nextread">
24-
<h3>Continue Reading in Math Ventures</h3>
24+
<h3>Continue Reading in Mathventures</h3>
2525
<p>
2626
{% if nextPostmath.url %}
2727
<strong>Next</strong>:

src/blog/math/math.11tydata.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
2-
const collection = (eleventyConfig) => {
3-
4-
eleventyConfig.addCollection("mathposts", function(collection) {
5-
const coll = collection.getFilteredByTag("math");
6-
7-
for(let i = 0; i < coll.length ; i++) {
8-
const prevPostmath = coll[i-1];
9-
const nextPostmath = coll[i + 1];
10-
11-
coll[i].data["prevPostmath"] = prevPostmath;
12-
coll[i].data["nextPostmath"] = nextPostmath;
13-
}
14-
15-
return coll;
16-
});
17-
}
18-
191
module.exports = {
202
eleventyComputed: {
213
title: data => data.title || data.page.filePathStem.split('/').pop(),

0 commit comments

Comments
 (0)