import { readableDate, htmlDateString } from "../dates.js";
import { slugify } from "../slugify.js";
export function postsList({ posts, currentUrl, counterStart }) {
const start = (counterStart ?? posts.length) + 1;
const items = [...posts]
.reverse()
.map((post) => {
const isActive = post.url === currentUrl;
const title = post.data.title
? post.data.title
: ` ${title}${post.url}`;
return `