first changes

This commit is contained in:
Spencer Flagg 2021-10-18 21:19:22 +02:00
parent 4c3dc4108d
commit 3d0abce3ad
3 changed files with 40 additions and 15193 deletions

15216
package-lock.json generated

File diff suppressed because it is too large Load diff

9
src/_includes/nav.ejs Normal file
View file

@ -0,0 +1,9 @@
<nav>
<ul>
<% list.forEach((link) => { %>
<li class="">
<a href="<%= link.url %>"><%= link.data.title %></a>
</li>
<% }) %>
</ul>
</nav>

View file

@ -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">