File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 21
21
22
22
<hr >
23
23
<div class =" nextread" >
24
- <h3 >Continue Reading in Math Ventures </h3 >
24
+ <h3 >Continue Reading in Mathventures </h3 >
25
25
<p >
26
26
{% if nextPostmath .url %}
27
27
<strong >Next</strong >:
Original file line number Diff line number Diff line change 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
-
19
1
module . exports = {
20
2
eleventyComputed : {
21
3
title : data => data . title || data . page . filePathStem . split ( '/' ) . pop ( ) ,
You can’t perform that action at this time.
0 commit comments