29 lines
		
	
	
	
		
			582 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			582 B
		
	
	
	
		
			Text
		
	
	
	
	
	
---js
 | 
						|
{
 | 
						|
  pagination: {
 | 
						|
    data: "collections.all",
 | 
						|
    size: 5,
 | 
						|
    alias: "posts",
 | 
						|
    before: function(posts) {
 | 
						|
      return posts.sort((postA, postB) => new Date(postB.date) - new Date(postA.date));
 | 
						|
    },
 | 
						|
  },
 | 
						|
}
 | 
						|
---
 | 
						|
<!doctype html>
 | 
						|
<html lang="en">
 | 
						|
  <head>
 | 
						|
    <meta charset="utf-8">
 | 
						|
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						|
    <title>{{ title }}</title>
 | 
						|
  </head>
 | 
						|
  <body>
 | 
						|
    {{ content | safe }}
 | 
						|
 | 
						|
    {%- for post in posts -%}
 | 
						|
      <a href="{{ post.url }}">
 | 
						|
        {{ post.data.title }}
 | 
						|
      </a>
 | 
						|
    {%- endfor -%}
 | 
						|
  </body>
 | 
						|
</html>
 |