|
1 | | -baseURL = "http://example.org/" |
| 1 | +baseURL = "https://books.halfrost.com/leetcode" |
2 | 2 | languageCode = "en-us" |
3 | | -title = "My New Hugo Site" |
| 3 | +title = "LeetCode Cookbook" |
| 4 | +theme = "book" |
| 5 | + |
| 6 | +# Book configuration |
| 7 | +disablePathToLower = true |
| 8 | +#enableGitInfo = true |
| 9 | + |
| 10 | +# Needed for mermaid/katex shortcodes |
| 11 | +[markup] |
| 12 | +[markup.goldmark.renderer] |
| 13 | + unsafe = true |
| 14 | + |
| 15 | +[markup.tableOfContents] |
| 16 | + startLevel = 1 |
| 17 | + |
| 18 | +# Multi-lingual mode config |
| 19 | +# There are different options to translate files |
| 20 | +# See https://gohugo.io/content-management/multilingual/#translation-by-filename |
| 21 | +# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory |
| 22 | +#[languages] |
| 23 | +#[languages.en] |
| 24 | +# languageName = 'English' |
| 25 | +# contentDir = 'content' |
| 26 | +# weight = 1 |
| 27 | + |
| 28 | +#[languages.ru] |
| 29 | +# languageName = 'Russian' |
| 30 | +# contentDir = 'content.ru' |
| 31 | +# weight = 2 |
| 32 | + |
| 33 | +#[languages.cn] |
| 34 | +# languageName = 'Chinese' |
| 35 | +# contentDir = 'content.cn' |
| 36 | +# weight = 3 |
| 37 | + |
| 38 | +[menu] |
| 39 | +[[menu.before]] |
| 40 | + name = "被人嘲笑的梦想" |
| 41 | + url = "https://halfrost.com" |
| 42 | + weight = 10 |
| 43 | +[[menu.before]] |
| 44 | + name = "Github" |
| 45 | + url = "https://github.com/halfrost" |
| 46 | + weight = 20 |
| 47 | +[[menu.before]] |
| 48 | + name = "微信公众号" |
| 49 | + url = "https://halfrost.com" |
| 50 | + weight = 30 |
| 51 | +[[menu.before]] |
| 52 | + name = "Twitter" |
| 53 | + url = "https://twitter.com/halffrost" |
| 54 | + weight = 40 |
| 55 | +[[menu.before]] |
| 56 | + name = "Weibo" |
| 57 | + url = "https://weibo.com/halfrost" |
| 58 | + weight = 50 |
| 59 | +#[[menu.after]] |
| 60 | +# name = "Github" |
| 61 | +# url = "https://github.com/alex-shpak/hugo-book" |
| 62 | +# weight = 10 |
| 63 | + |
| 64 | +#[[menu.after]] |
| 65 | +# name = "Hugo Themes" |
| 66 | +# url = "https://themes.gohugo.io/hugo-book/" |
| 67 | +# weight = 20 |
| 68 | + |
| 69 | +[params] |
| 70 | + # (Optional, default true) Controls table of contents visibility on right side of pages. |
| 71 | + # Start and end levels can be controlled with markup.tableOfContents setting. |
| 72 | + # You can also specify this parameter per page in front matter. |
| 73 | + BookToC = true |
| 74 | + |
| 75 | + # (Optional, default none) Set the path to a logo for the book. If the logo is |
| 76 | + # /static/logo.png then the path would be logo.png |
| 77 | + # BookLogo = 'logo.png' |
| 78 | + |
| 79 | + # (Optional, default none) Set leaf bundle to render as side menu |
| 80 | + # When not specified file structure and weights will be used |
| 81 | + BookMenuBundle = '/menu' |
| 82 | + |
| 83 | + # (Optional, default docs) Specify section of content to render as menu |
| 84 | + # You can also set value to '*' to render all sections to menu |
| 85 | + BookSection = 'docs' |
| 86 | + |
| 87 | + # Set source repository location. |
| 88 | + # Used for 'Last Modified' and 'Edit this page' links. |
| 89 | + # BookRepo = 'https://github.com/alex-shpak/hugo-book' |
| 90 | + |
| 91 | + # Enable "Edit this page" links for 'doc' page type. |
| 92 | + # Disabled by default. Uncomment to enable. Requires 'BookRepo' param. |
| 93 | + # Path must point to 'content' directory of repo. |
| 94 | + # BookEditPath = 'edit/master/exampleSite/content' |
| 95 | + |
| 96 | + # Configure the date format used on the pages |
| 97 | + # - In git information |
| 98 | + # - In blog posts |
| 99 | + BookDateFormat = 'Jan 2, 2006' |
| 100 | + |
| 101 | + # (Optional, default true) Enables search function with flexsearch, |
| 102 | + # Index is built on fly, therefore it might slowdown your website. |
| 103 | + # Configuration for indexing can be adjusted in i18n folder per language. |
| 104 | + BookSearch = true |
| 105 | + |
| 106 | + # (Optional, default true) Enables comments template on pages |
| 107 | + # By default partals/docs/comments.html includes Disqus template |
| 108 | + # See https://gohugo.io/content-management/comments/#configure-disqus |
| 109 | + # Can be overwritten by same param in page frontmatter |
| 110 | + BookComments = false |
| 111 | + enableGitalk = true |
| 112 | + |
| 113 | + # /!\ This is an experimental feature, might be removed or changed at any time |
| 114 | + # (Optional, experimental, default false) Enables portable links and link checks in markdown pages. |
| 115 | + # Portable links meant to work with text editors and let you write markdown without {{< relref >}} shortcode |
| 116 | + # Theme will print warning if page referenced in markdown does not exists. |
| 117 | + BookPortableLinks = true |
| 118 | + |
| 119 | +[params.gitalk] |
| 120 | + clientID = "6c1de6a2fe5dec4edbbe" # Your client ID |
| 121 | + clientSecret = "199b2c9f3306a099ccea524c8eedc2a98a85b0e7" # Your client secret |
| 122 | + repo = "LeetCode-Go" # The repo to store comments |
| 123 | + owner = "halfrost" # Your GitHub ID |
| 124 | + admin= "halfrost" # Required. Github repository owner and collaborators. (Users who having write access to this repository) |
| 125 | + id= "location.pathname" # The unique id of the page. |
| 126 | + labels= "gitalk" # Github issue labels. If you used to use Gitment, you can change it |
| 127 | + perPage= 100 # Pagination size, with maximum 100. |
| 128 | + pagerDirection= "last" # Comment sorting direction, available values are 'last' and 'first'. |
| 129 | + createIssueManually= false # If it is 'false', it is auto to make a Github issue when the administrators login. |
| 130 | + distractionFreeMode= false # Enable hot key (cmd|ctrl + enter) submit comment. |
| 131 | + |
| 132 | + |
0 commit comments