Commit 0a315d4
Changed files (2)
src
pages
posts
plugins
src/pages/posts/[article].astro
@@ -69,7 +69,7 @@ const references: {
context: string;
id: string;
}[] = remarkPluginFrontmatter.references || [];
-contentString = contentString.replaceAll(referencePattern, (match, reference, alias) => {
+contentString = contentString.replaceAll(referencePattern, (_, reference, alias) => {
const refArticle = getArticle(reference);
if (
refArticle &&
src/plugins/remark-create-time.ts
@@ -2,7 +2,7 @@ import type { RemarkPlugin } from '@astrojs/markdown-remark';
import { statSync } from 'fs';
export const remarkCreateTime: RemarkPlugin = function () {
- return function (tree, file) {
+ return function (_, file) {
const filepath = file.history[0];
const result = statSync(filepath);
file.data!.astro!.frontmatter!.createAt = result.birthtime.toISOString();