fix music paths
This commit is contained in:
parent
ba9ec4e9dd
commit
00ed93cb94
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ dayjs.extend(utc)
|
|||
|
||||
export default async (config) => {
|
||||
const slugify = config.getFilter("slugify")
|
||||
const url = config.getFilter("url")
|
||||
const url = (value) => value
|
||||
const mdLib = md({
|
||||
html: true,
|
||||
breaks: true,
|
||||
|
@ -78,7 +78,7 @@ export default async (config) => {
|
|||
const musicFiles = fs.readdirSync("./assets/music/").map((filename) => {
|
||||
const ext = path.extname(filename)
|
||||
const base = path.basename(filename, ext)
|
||||
const absUrl = `/music/${slugify(base)}${ext}`
|
||||
const absUrl = `/music/${base}${ext}`
|
||||
return {
|
||||
data: {
|
||||
title: base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue