【发布时间】:2019-06-10 20:48:39
【问题描述】:
我怎样才能用我的前面的东西作为 url 而不是文件名?
我在_config.yml 中设置了一个收藏集
collections:
news:
output: true
我希望能够使用page.title 作为我的网址,下面是我的首要任务
---
layout: newspost
title: "Fracture announces exclusive 3 year deal with Drake & Morgan."
date: 2019-01-16
---
目前 url 是 .md 文件的文件名,如下所示:
http://localhost:4000/news/drake_and_morgan.html
我希望 url 的输出如下:
http://localhost:4000/news/Fracture-announces-exclusive-3-year-deal with-Drake-&-Morgan. 或类似的。
【问题讨论】: