mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 21:59:30 +08:00
merge with upsteam 055d890c79 (diff-02b812f3ec51006878cda37f92a36abc785ee5518b84340ce4a7ed41051c93f0)
This commit is contained in:
parent
c86396d231
commit
c62a1d3d9c
6 changed files with 6 additions and 0 deletions
|
@ -41,6 +41,7 @@ const render = (posts = genPosts({ postHtml: true, postLimit: feed.limit, filter
|
||||||
</feed>`.trim()
|
</feed>`.trim()
|
||||||
|
|
||||||
export const prerender = true
|
export const prerender = true
|
||||||
|
export const trailingSlash = 'never'
|
||||||
export const GET: RequestHandler = async () =>
|
export const GET: RequestHandler = async () =>
|
||||||
new Response(render(), {
|
new Response(render(), {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -43,6 +43,7 @@ const render = (posts = genPosts({ postHtml: true, postLimit: feed.limit, filter
|
||||||
})
|
})
|
||||||
|
|
||||||
export const prerender = true
|
export const prerender = true
|
||||||
|
export const trailingSlash = 'never'
|
||||||
export const GET: RequestHandler = async () =>
|
export const GET: RequestHandler = async () =>
|
||||||
json(render(), {
|
json(render(), {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -3,6 +3,7 @@ import { site } from '$lib/config/site'
|
||||||
import { any, maskable } from '$lib/config/icon'
|
import { any, maskable } from '$lib/config/icon'
|
||||||
|
|
||||||
export const prerender = true
|
export const prerender = true
|
||||||
|
export const trailingSlash = 'never'
|
||||||
export const GET: RequestHandler = () =>
|
export const GET: RequestHandler = () =>
|
||||||
new Response(
|
new Response(
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
|
|
|
@ -3,4 +3,5 @@ import { json } from '@sveltejs/kit'
|
||||||
import { genPosts } from '$lib/utils/posts'
|
import { genPosts } from '$lib/utils/posts'
|
||||||
|
|
||||||
export const prerender = true
|
export const prerender = true
|
||||||
|
export const trailingSlash = 'never'
|
||||||
export const GET: RequestHandler = async () => json(genPosts())
|
export const GET: RequestHandler = async () => json(genPosts())
|
||||||
|
|
|
@ -27,6 +27,7 @@ const render = (): string =>
|
||||||
</urlset>`.trim()
|
</urlset>`.trim()
|
||||||
|
|
||||||
export const prerender = true
|
export const prerender = true
|
||||||
|
export const trailingSlash = 'never'
|
||||||
export const GET: RequestHandler = async () =>
|
export const GET: RequestHandler = async () =>
|
||||||
new Response(render(), {
|
new Response(render(), {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -3,4 +3,5 @@ import { json } from '@sveltejs/kit'
|
||||||
import { genPosts, genTags } from '$lib/utils/posts'
|
import { genPosts, genTags } from '$lib/utils/posts'
|
||||||
|
|
||||||
export const prerender = true
|
export const prerender = true
|
||||||
|
export const trailingSlash = 'never'
|
||||||
export const GET: RequestHandler = async () => json(genTags(genPosts()))
|
export const GET: RequestHandler = async () => json(genTags(genPosts()))
|
||||||
|
|
Loading…
Reference in a new issue