diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-10-22 20:25:08 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-10-22 20:25:08 +0300 |
commit | 1e56d7c9e1c27699bf26e2e94c990766801f0bea (patch) | |
tree | 16e49b2ce3a2d0a982a78214960362d8f1dde4b2 | |
parent | eeb3bcec19b15e6b7d30f983c8f613dedb1a9b32 (diff) | |
download | benzin-next-1e56d7c9e1c27699bf26e2e94c990766801f0bea.tar.gz |
feat: extend benzin config
-rw-r--r-- | src/benzinConfig.ts | 4 | ||||
-rw-r--r-- | src/lib/types.ts | 4 | ||||
-rw-r--r-- | src/pages/[...path].tsx | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/benzinConfig.ts b/src/benzinConfig.ts index d310bb3..6543117 100644 --- a/src/benzinConfig.ts +++ b/src/benzinConfig.ts @@ -2,8 +2,10 @@ import { BenzinConfig } from './lib/types'; import nginxAdapter from './lib/nginxAdapter'; const benzinConfig: BenzinConfig = { - CDN: 'http://localhost:8000', + CDN: 'https://git.eug-vs.xyz/eug-vs/eug-vs-xyz/plain/src', adapter: nginxAdapter, + title: `Eugene's Space`, + faviconPath: '/public/icon-64.png', }; export default benzinConfig; diff --git a/src/lib/types.ts b/src/lib/types.ts index 8bbf5bb..da073e6 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -10,6 +10,6 @@ export interface Adapter { export interface BenzinConfig { CDN: string; adapter: Adapter; + title: string; + faviconPath: string; } - - diff --git a/src/pages/[...path].tsx b/src/pages/[...path].tsx index a49286d..5bedae3 100644 --- a/src/pages/[...path].tsx +++ b/src/pages/[...path].tsx @@ -51,9 +51,9 @@ const Page: NextPage = ({ markdownSource, emojiFileNames }: any) => { return ( <> <Head> - <title>{`Eugene's Space`}</title> + <title>{benzinConfig.title}</title> <meta name="description" content="TODO" /> - <link rel="icon" href="/icon-64.png" /> + <link rel="icon" href={`${benzinConfig.CDN}${benzinConfig.faviconPath}`}/> </Head> <main> <ReactMarkdown |