diff options
author | Juraj Bubniak <juraj.bubniak@exponea.com> | 2020-04-19 12:32:48 +0300 |
---|---|---|
committer | Juraj Bubniak <juraj.bubniak@exponea.com> | 2020-04-19 12:32:48 +0300 |
commit | 9d17ea0b3376b7c6db85a064672f2b44f18ea216 (patch) | |
tree | 1540b8abcfd1a6b269c8038bee6511d6fe0efb1d | |
parent | fd753c3ed3ef3bad35681af001574a3b3964e272 (diff) |
Use yaml config.
-rw-r--r-- | README.md | 161 | ||||
-rw-r--r-- | exampleSite/config.toml | 75 | ||||
-rw-r--r-- | exampleSite/config.yml | 82 |
3 files changed, 166 insertions, 152 deletions
@@ -33,86 +33,93 @@ or run `build` to compile the styles: yarn run build ``` -## Example config.toml +## Example config.yml To customize your theme you can use following params: -```toml -baseurl = "https://example.com/" -title = "mytitle" -theme = "ghostwriter" -languageCode = "en-us" -copyright = "My Name" -googleAnalytics = "XXX" -disqusShortname = "XXX" - -[Privacy] - -[Privacy.disqus] - disable = true - -[Privacy.googleAnalytics] - anonymizeIP = true - respectDoNotTrack = true - useSessionStorage = false - -[Author] - name = "My Name" - profile = "https://google.com/+XXX" - -[Taxonomies] - tag = "tags" - -[Params] - mainSections = ["post"] - intro = true - headline = "My headline" - description = "My description" - github = "https://github.com/XXX" - gitlab = "https://gitlab.com/XXX" - linkedin = "https://linkedin.com/in/XXX/" - gplus = "https://google.com/+XXX" - twitter = "https://twitter.com/XXX" - stackoverflow = "https://stackoverflow.com/users/XXX/YYY" - facebook = "https://www.facebook.com/username" - email = "XXX@example.com" - opengraph = true - shareTwitter = true - shareFacebook = true - shareGooglePlus = true - shareLinkedIn = false - dateFormat = "Mon, Jan 2, 2006" - exponeaJsUrl = "" - exponeaTarget = "" - exponeaToken = "" - exponeaTrackVisits = false - readingTime = true - readingTimeText = "Estimated reading time:" - fathomUrl = "" - fathomSiteId = "" - -[Permalinks] - post = "/:year/:month/:day/:filename/" - -[[menu.main]] - name = "Blog" - url = "/" - weight = 1 - -[[menu.main]] - name = "Projects" - url = "/project/" - weight = 2 - -[[menu.main]] - name = "Contact" - url = "/page/contact/" - weight = 3 - -[[menu.main]] - name = "About" - url = "/page/about/" - weight = 4 +```yaml +baseurl: "https://example.com/" +title: mytitle +theme: ghostwriter +languageCode: en-us +copyright: My Name +googleAnalytics: XXX +disqusShortname: XXX +pygmentsUseClasses: true +pygmentsCodefences: true + +markup: + highlight: + codeFences: true + guessSyntax: false + hl_Lines: "" + lineNoStart: 1 + lineNos: false + lineNumbersInTable: true + noClasses: true + tabWidth: 2 + +privacy: + disqus: + disable: true + googleAnalytics: + anonymizeIP: true + respectDoNotTrack: true + useSessionStorage: false + +author: + name: My Name + profile: "https://google.com/+XXX" + +taxonomies: + tag: tags + +params: + mainSections: + - post + intro: true + headline: My headline + description: My description + github: "https://github.com/XXX" + gitlab: "https://gitlab.com/XXX" + linkedin: "https://linkedin.com/in/XXX/" + gplus: "https://google.com/+XXX" + twitter: "https://twitter.com/XXX" + stackoverflow: "https://stackoverflow.com/users/XXX/YYY" + facebook: "https://www.facebook.com/username" + email: xxx@example.com + opengraph: true + shareTwitter: true + shareFacebook: true + shareGooglePlus: true + shareLinkedIn: false + dateFormat: "Mon, Jan 2, 2006" + exponeaJsUrl: "" + exponeaTarget: "" + exponeaToken: "" + exponeaTrackVisits: false + readingTime: true + readingTimeText: "Estimated reading time:" + fathomUrl: "" + fathomSiteId: "" + +permalinks: + post: "/:year/:month/:day/:filename/" + +menu: + main: + - name: Blog + url: / + weight: 1 + - name: Projects + url: /project/ + weight: 2 + - name: Contact + url: /page/contact/ + weight: 3 + - name: About + url: /page/about/ + weight: 4 ``` You can also inject arbitrary HTML into `<head>` simply by overriding the `extra-in-head.html` diff --git a/exampleSite/config.toml b/exampleSite/config.toml deleted file mode 100644 index 8adbb5b..0000000 --- a/exampleSite/config.toml +++ /dev/null @@ -1,75 +0,0 @@ -baseurl = "https://example.com/" -title = "Ghostwriter example" -theme = "ghostwriter" -languageCode = "en-us" -copyright = "My Name" -disqusShortname = "XXX" -googleAnalytics = "XXX" - -[Privacy] - -[Privacy.disqus] - disable = true - -[Privacy.googleAnalytics] - anonymizeIP = true - respectDoNotTrack = true - useSessionStorage = false - -[Author] - name = "My Name" - profile = "https://google.com/+XXX" - -[Taxonomies] - tag = "tags" - -[Params] - mainSections = ["post"] - intro = true - headline = "Ghostwriter example" - description = "Ghostwriter example description" - github = "https://github.com/XXX" - gitlab = "https://gitlab.com/XXX" - linkedin = "https://linkedin.com/in/XXX/" - gplus = "https://google.com/+XXX" - twitter = "https://twitter.com/XXX" - stackoverflow = "https://stackoverflow.com/users/XXX/YYY" - facebook = "https://www.facebook.com/username" - email = "XXX@example.com" - opengraph = true - shareTwitter = true - shareFacebook = true - shareGooglePlus = true - shareLinkedIn = false - dateFormat = "Mon, Jan 2, 2006" - exponeaJsUrl = "" - exponeaTarget = "" - exponeaToken = "" - exponeaTrackVisits = false - readingTime = true - readingTimeText = "Estimated reading time:" - fathomUrl = "" - fathomSiteId = "" - -[Permalinks] - post = "/:year/:month/:day/:filename/" - -[[menu.main]] - name = "Blog" - url = "/" - weight = 1 - -[[menu.main]] - name = "Projects" - url = "/project/" - weight = 2 - -[[menu.main]] - name = "Contact" - url = "/page/contact/" - weight = 3 - -[[menu.main]] - name = "About" - url = "/page/about/" - weight = 4 diff --git a/exampleSite/config.yml b/exampleSite/config.yml new file mode 100644 index 0000000..936cb20 --- /dev/null +++ b/exampleSite/config.yml @@ -0,0 +1,82 @@ +baseurl: "https://example.com/" +title: Ghostwriter example +theme: ghostwriter +languageCode: en-us +copyright: My Name +disqusShortname: XXX +googleAnalytics: XXX +pygmentsUseClasses: true +pygmentsCodefences: true + +markup: + highlight: + codeFences: true + guessSyntax: false + hl_Lines: "" + lineNoStart: 1 + lineNos: false + lineNumbersInTable: true + noClasses: true + tabWidth: 2 + +privacy: + disqus: + disable: true + googleAnalytics: + anonymizeIP: true + respectDoNotTrack: true + useSessionStorage: false + +author: + name: My Name + profile: "https://google.com/+XXX" + +taxonomies: + tag: tags + +params: + mainSections: + - post + intro: true + headline: Ghostwriter example + description: Ghostwriter example description + github: "https://github.com/XXX" + gitlab: "https://gitlab.com/XXX" + linkedin: "https://linkedin.com/in/XXX/" + gplus: "https://google.com/+XXX" + twitter: "https://twitter.com/XXX" + stackoverflow: "https://stackoverflow.com/users/XXX/YYY" + facebook: "https://www.facebook.com/username" + email: XXX@example.com + opengraph: true + shareTwitter: true + shareFacebook: true + shareGooglePlus: true + shareLinkedIn: false + dateFormat: "Mon, Jan 2, 2006" + exponeaJsUrl: "" + exponeaTarget: "" + exponeaToken: "" + exponeaTrackVisits: false + readingTime: true + readingTimeText: "Estimated reading time:" + fathomUrl: "" + fathomSiteId: "" + +permalinks: + post: "/:year/:month/:day/:filename/" + +menu: + main: + - name: Blog + url: / + weight: 1 + - name: Projects + url: /project/ + weight: 2 + - name: Contact + url: /page/contact/ + weight: 3 + - name: About + url: /page/about/ + weight: 4 |