mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-20 23:22:00 +01:00
Remove title header from the news.json
file content (#56)
* Remove title header from the `news.json` file content. * Fix regex to match only `h1`.
This commit is contained in:
parent
fa8f30d6b2
commit
6b7faa105f
@ -38,6 +38,7 @@ async function generateFeed(config: SiteConfig, hostname: string) {
|
||||
const markdown = (src ?? "")
|
||||
.replace(/^---.*---/s, "")
|
||||
.replace(/]\((\/.*?)\)/g, `](${hostname}$1)`)
|
||||
.replace(/^# .*$/m, "")
|
||||
.trim()
|
||||
|
||||
const post = {
|
||||
|
Loading…
Reference in New Issue
Block a user