Skip to content

Commit fa56a6f

Browse files
committed
feat: add github action
1 parent 13c9c48 commit fa56a6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const withNextra = require('nextra')('nextra-theme-blog', './theme.config.js')
33

44
const cfg = {
55
...withNextra(),
6+
basePath: '/shawndeng_blogs',
67
output: "export",
78
images: {
89
unoptimized: true,

scripts/gen-rss.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const matter = require('gray-matter')
66
async function generate() {
77
const feed = new RSS({
88
title: 'Shawn Deng',
9-
site_url: 'https://yoursite.com',
10-
feed_url: 'https://yoursite.com/feed.xml'
9+
site_url: 'https://shawnden-coder.github.io/shawndeng_blogs',
10+
feed_url: 'https://shawnden-coder.github.io/shawndeng_blogs/feed.xml'
1111
})
1212

1313
const posts = await fs.readdir(path.join(__dirname, '..', 'pages', 'posts'))

0 commit comments

Comments
 (0)