mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-30 22:26:38 -04:00
generate permalinks when parsing note
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import * as Sentry from "@sentry/node";
|
||||
import * as config from "../../lib/config";
|
||||
import { getAllNotes } from "../../lib/parse-notes";
|
||||
import pRetry from "p-retry";
|
||||
import faunadb from "faunadb";
|
||||
@ -101,7 +100,7 @@ const getSiteStats = async (client) => {
|
||||
const match: any = notes.find((note) => `notes/${note.slug}` === page.slug);
|
||||
if (match) {
|
||||
page.title = match.title;
|
||||
page.url = `${config.baseUrl}/${page.slug}/`;
|
||||
page.url = match.permalink;
|
||||
page.date = match.date;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user