From e84980adcb96d03dcb0f2e6eceb4aa0eb2d4df90 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 26 Mar 2021 01:51:00 -0500 Subject: [PATCH] Add editorconfig --- .editorconfig | 11 +++++ config.toml | 124 +++++++++++++++++++++++++------------------------- 2 files changed, 73 insertions(+), 62 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4e2f75d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*.{md,toml}] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +#[*.md] +#max_line_length = 80 diff --git a/config.toml b/config.toml index a7d9244..9377509 100644 --- a/config.toml +++ b/config.toml @@ -4,83 +4,83 @@ theme = "terminal" paginate = 5 # [permalinks] -# posts = "/:year/:month/:title/" +# posts = "/:year/:month/:title/" [params] - # dir name of your main content (default is `content/posts`). - # the list of set content will show up on your index page (baseurl). - contentTypeName = "posts" + # dir name of your main content (default is `content/posts`). + # the list of set content will show up on your index page (baseurl). + contentTypeName = "posts" - # ["orange", "blue", "red", "green", "pink"] - themeColor = "blue" + # ["orange", "blue", "red", "green", "pink"] + themeColor = "blue" - # if you set this to 0, only submenu trigger will be visible - showMenuItems = 2 + # if you set this to 0, only submenu trigger will be visible + showMenuItems = 2 - # show selector to switch language - showLanguageSelector = false + # show selector to switch language + showLanguageSelector = false - # set theme to full screen width - fullWidthTheme = false + # set theme to full screen width + fullWidthTheme = false - # center theme with default width - centerTheme = true + # center theme with default width + centerTheme = true - # set a custom favicon (default is a `themeColor` square) - favicon = "icon/favicon.ico" + # set a custom favicon (default is a `themeColor` square) + favicon = "icon/favicon.ico" - # set post to show the last updated - # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated - showLastUpdated = false - # Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author - # updatedDatePrefix = "Updated" + # set post to show the last updated + # If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated + showLastUpdated = false + # Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author + # updatedDatePrefix = "Updated" - # set all headings to their default size (depending on browser settings) - # it's set to `true` by default - # oneHeadingSize = false + # set all headings to their default size (depending on browser settings) + # it's set to `true` by default + # oneHeadingSize = false [params.twitter] - # set Twitter handles for Twitter cards - # see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution - # do not include @ - creator = "" - site = "" + # set Twitter handles for Twitter cards + # see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution + # do not include @ + creator = "" + site = "" [languages] - [languages.en] - languageName = "English" - title = "bbaovanc's blog" - subtitle = "My personal blog site" - owner = "bbaovanc" - keywords = "" - copyright = "" - menuMore = "Show more" - readMore = "Read more" - readOtherPosts = "Read other posts" - newerPosts = "Newer posts" - olderPosts = "Older posts" - missingContentMessage = "Page not found..." - missingBackButtonLabel = "Back to home page" + [languages.en] + languageName = "English" + title = "bbaovanc's blog" + subtitle = "My personal blog site" + owner = "bbaovanc" + keywords = "" + copyright = "" + menuMore = "Show more" + readMore = "Read more" + readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" + missingContentMessage = "Page not found..." + missingBackButtonLabel = "Back to home page" - [languages.en.params.logo] - logoText = "bbaovanc's blog" - logoHomeLink = "/blog/" + [languages.en.params.logo] + logoText = "bbaovanc's blog" + logoHomeLink = "/blog/" - [languages.en.menu] - [[languages.en.menu.main]] - identifier = "other-sites" - name = "Other Sites" - url = "/other-sites" - weight = 10 + [languages.en.menu] + [[languages.en.menu.main]] + identifier = "other-sites" + name = "Other Sites" + url = "/other-sites" + weight = 10 - [[languages.en.menu.main]] - identifier = "main-website" - name = "Main Website" - url = "https://bbaovanc.com/" - weight = 20 + [[languages.en.menu.main]] + identifier = "main-website" + name = "Main Website" + url = "https://bbaovanc.com/" + weight = 20 - [[languages.en.menu.main]] - identifier = "rss" - name = "RSS Feed" - url = "/posts/index.xml" - weight = 30 + [[languages.en.menu.main]] + identifier = "rss" + name = "RSS Feed" + url = "/posts/index.xml" + weight = 30