Skip to content

Commit

Permalink
Use example theme as initial custom theme
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Sep 18, 2021
1 parent a6605bd commit 784f32b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { ThemeContext } from '../lib/context';
import { sendData } from '../lib/messages';
import { ISetConfigMessage } from '../lib/types/giscus';
import { getThemeUrl } from '../lib/utils';
import { GISCUS_APP_HOST } from '../services/config';

export const getStaticProps = async () => {
const path = join(process.cwd(), 'README.md');
Expand Down Expand Up @@ -46,7 +47,7 @@ export default function Home({ contentBefore, contentAfter }: HomeProps) {
const { theme, setTheme } = useContext(ThemeContext);
const [directConfig, setDirectConfig] = useState<DirectConfig>({
theme: 'light',
themeUrl: 'https://',
themeUrl: `${GISCUS_APP_HOST}/themes/custom_example.css`,
reactionsEnabled: true,
emitMetadata: false,
});
Expand Down

1 comment on commit 784f32b

@vercel
Copy link

@vercel vercel bot commented on 784f32b Sep 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.