Update post collection and show category on posts

This commit is contained in:
prototypa
2023-01-24 01:26:37 -05:00
parent c9c555e0ef
commit 64bcda934c
12 changed files with 42 additions and 16 deletions

View File

@ -3,7 +3,7 @@ import slugify from 'limax';
import { SITE, BLOG } from '~/config.mjs';
import { trim } from '~/utils/utils';
const trimSlash = (s: string) => trim(trim(s, '/'));
export const trimSlash = (s: string) => trim(trim(s, '/'));
const createPath = (...params: string[]) => {
const paths = params
.map((el) => trimSlash(el))