mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +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 ?? "")
|
const markdown = (src ?? "")
|
||||||
.replace(/^---.*---/s, "")
|
.replace(/^---.*---/s, "")
|
||||||
.replace(/]\((\/.*?)\)/g, `](${hostname}$1)`)
|
.replace(/]\((\/.*?)\)/g, `](${hostname}$1)`)
|
||||||
|
.replace(/^# .*$/m, "")
|
||||||
.trim()
|
.trim()
|
||||||
|
|
||||||
const post = {
|
const post = {
|
||||||
|
Loading…
Reference in New Issue
Block a user