1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-30 20:47:46 +00:00

Add JSON feed

This commit is contained in:
RGBCube 2024-03-06 13:31:34 +03:00
parent 0acf135cc5
commit cb5de328b3
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -45,7 +45,7 @@ site.process([".html"], (pages) => {
});
site.use(feed({
output: ["/blog.rss"],
output: ["/blog.rss", "/blog.json"],
query: "type=article",
sort: "date=asc",

View file

@ -15,6 +15,7 @@
<meta name="theme-color" content="{{ color }}"/>
<link rel="alternate" type="application/rss+xml" href="/blog.rss"/>
<link rel="alternate" type="application/feed+json" href="/blog.json"/>
<meta property="og:type" content="{{ type }}"/>
<meta property="og:locale" content="en"/>