Skip to content

Commit

Permalink
Merge pull request #1771 from kubosho/export-each-site-data-variables
Browse files Browse the repository at this point in the history
feat(site_data): export each variables
  • Loading branch information
kubosho authored Jul 15, 2024
2 parents 71737cb + 0c721b0 commit ddf3ff6
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions constants/site_data.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
const BASE_LANGUAGE = 'ja';
export const BASE_LANGUAGE = 'ja';

const AUTHOR = 'kubosho';
const AUTHOR_WITH_UNDERSCORE = `${AUTHOR}_`;
export const AUTHOR = 'kubosho';
export const AUTHOR_WITH_UNDERSCORE = `${AUTHOR}_`;

const SITE_HOSTNAME = 'blog.kubosho.com';
const SITE_URL = `https://${SITE_HOSTNAME}`;
const LOCAL_SITE_HOSTNAME = 'localhost:3000';
const LOCAL_SITE_URL = `http://${LOCAL_SITE_HOSTNAME}`;
export const SITE_HOSTNAME = 'blog.kubosho.com' as const;
export const SITE_URL = `https://${SITE_HOSTNAME}` as const;
export const LOCAL_SITE_HOSTNAME = 'localhost' as const;
export const LOCAL_SITE_PORT = 4321 as const;
export const LOCAL_SITE_URL = `http://${LOCAL_SITE_HOSTNAME}:${LOCAL_SITE_PORT}` as const;

const TWITTER_ACCOUNT_ID = AUTHOR_WITH_UNDERSCORE;
const FACEBOOK_APP_ID = '2453282784920956';
export const TWITTER_ACCOUNT_ID = AUTHOR_WITH_UNDERSCORE;
export const FACEBOOK_APP_ID = '2453282784920956';

const FAVICON_URL = 'https://blog-assets.kubosho.com/icon.png';
const OG_IMAGE_URL = 'https://blog-assets.kubosho.com/og_image.png';

export {
BASE_LANGUAGE,
AUTHOR,
AUTHOR_WITH_UNDERSCORE,
SITE_HOSTNAME,
SITE_URL,
LOCAL_SITE_HOSTNAME,
LOCAL_SITE_URL,
TWITTER_ACCOUNT_ID,
FACEBOOK_APP_ID,
FAVICON_URL,
OG_IMAGE_URL,
};
export const FAVICON_URL = 'https://blog-assets.kubosho.com/icon.png';
export const OG_IMAGE_URL = 'https://blog-assets.kubosho.com/og_image.png';

0 comments on commit ddf3ff6

Please sign in to comment.