-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This updates the config to be a direct representation of the values used on the resulting pages, which while more duplicative in the config file means more direct control over the end result and less string interpolation within the page generator.
- Loading branch information
Showing
3 changed files
with
66 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
export const Config = (() => { | ||
const firstName = "Lee" | ||
const lastName = "Byron" | ||
|
||
const fullName = firstName + " " + lastName | ||
const domainRoot = "https://leebyron.com" | ||
const canonicalRoot = domainRoot + "/til/" | ||
const twitterAt = "@leeb" | ||
|
||
const githubUsername = "leebyron" | ||
const githubRepo = "til" | ||
|
||
return { | ||
FIRST_NAME: firstName, | ||
LAST_NAME: lastName, | ||
FULL_NAME: fullName, | ||
DOMAIN_ROOT: domainRoot, | ||
CANONICAL_ROOT: canonicalRoot, | ||
TWITTER_AT: twitterAt, | ||
GITHUB_USERNAME: githubUsername, | ||
GITHUB_REPO: githubRepo, | ||
} | ||
})() | ||
export default { | ||
canonicalRoot: "https://leebyron.com/til/", | ||
title: "til", | ||
githubRepo: "leebyron/til", | ||
authorName: "Lee Byron", | ||
authorURL: "https://leebyron.com", | ||
pageTitle: `Things I've Learned / Lee Byron`, | ||
ogTitle: `Lee Byron / til`, | ||
ogDescription: `Things I've Learned: brief blurbs on miscellaneous matter.`, | ||
twitterTitle: `Lee Byron / til: brief blurbs on miscellaneous matter.`, | ||
twitterCreator: "@leeb", | ||
googleName: `Things I've Learned`, | ||
feedTitle: `Lee Byron / til`, | ||
feedSubtitle: `Things I've Learned: brief blurbs on miscellaneous matter.`, | ||
gtag: "UA-61714711-1", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters