refactor: moves util functions into their respective library file
This commit is contained in:
parent
98ac61a6c8
commit
38b5413a37
11 changed files with 23 additions and 27 deletions
|
|
@ -6,7 +6,7 @@ import { getCollection, render } from 'astro:content';
|
|||
import { isAdmin } from '../../lib/auth';
|
||||
import Layout from '../../layouts/Layout.astro';
|
||||
import { formatDate } from '../../lib/format';
|
||||
import { getSlug } from '../../utils';
|
||||
import { getSlug } from '../../lib/posts';
|
||||
|
||||
let session;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue