mirror of
https://github.com/RGBCube/Site
synced 2025-07-30 20:47:46 +00:00
Add JSON feed
This commit is contained in:
parent
0acf135cc5
commit
cb5de328b3
2 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue