Skip to content

Commit

Permalink
Sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Apr 15, 2024
1 parent 90cfefb commit 9f47579
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion apps/website/docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ import { defineConfig } from 'vitepress';
import { createSidebar } from './sidebar_creator';
import { rss } from './rss';

const HOSTNAME = 'https://withease.pages.dev';

export default defineConfig({
async buildEnd(config) {
await rss.onBuildEnd(config);
await rss.onBuildEnd(config, { hostname: HOSTNAME });
},
sitemap: {
hostname: HOSTNAME,
},
lang: 'en',
title: 'With Ease',
Expand Down
4 changes: 1 addition & 3 deletions apps/website/docs/.vitepress/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { createContentLoader } from 'vitepress';
import { compareAsc } from 'date-fns';

export const rss = {
async onBuildEnd(config) {
const hostname = 'https://withease.pages.dev';

async onBuildEnd(config, { hostname }) {
const feed = new Feed({
title: 'With Ease Magazine',
description:
Expand Down

0 comments on commit 9f47579

Please sign in to comment.