first changes
This commit is contained in:
parent
4c3dc4108d
commit
3d0abce3ad
3 changed files with 40 additions and 15193 deletions
15216
package-lock.json
generated
15216
package-lock.json
generated
File diff suppressed because it is too large
Load diff
9
src/_includes/nav.ejs
Normal file
9
src/_includes/nav.ejs
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<% list.forEach((link) => { %>
|
||||||
|
<li class="">
|
||||||
|
<a href="<%= link.url %>"><%= link.data.title %></a>
|
||||||
|
</li>
|
||||||
|
<% }) %>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
@ -7,8 +7,16 @@ pagination:
|
||||||
permalink: '<% if (pagination.pageNumber > 0) { %><%= `page${pagination.pageNumber + 1}/index.html` %><% } else { %>index.html<% } %>'
|
permalink: '<% if (pagination.pageNumber > 0) { %><%= `page${pagination.pageNumber + 1}/index.html` %><% } else { %>index.html<% } %>'
|
||||||
eleventyComputed:
|
eleventyComputed:
|
||||||
title: '<% if (pagination.pageNumber > 0) { %><%= `Page ${pagination.pageNumber + 1} | ${site.title}` %><% } else { %><%= site.title %><% } %>'
|
title: '<% if (pagination.pageNumber > 0) { %><%= `Page ${pagination.pageNumber + 1} | ${site.title}` %><% } else { %><%= site.title %><% } %>'
|
||||||
|
links: [ { url: 'a', data: { title: 'b' } } ]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<% include /nav %>
|
||||||
|
<% links.forEach((link) => { %>
|
||||||
|
<a href="<%= link.url %>"><%= link.data.title %></a>
|
||||||
|
<% }) %>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% list.forEach((post) => { %>
|
<% list.forEach((post) => { %>
|
||||||
<li class="mb-3 flex justify-between">
|
<li class="mb-3 flex justify-between">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue