|
| 1 | +# hugo server --minify --themesDir ... --baseURL=http://0.0.0.0:1313/theme/hugo-book/ |
| 2 | + |
| 3 | +#baseURL = 'https://example.com/' |
| 4 | +baseURL = 'http://localhost:1313/' |
| 5 | +title = "Alvin's Coding Life" |
| 6 | +theme = 'hugo-book' |
| 7 | +defaultContentLanguage = "cn" |
| 8 | +defaultContentLanguageInSubdir = true |
| 9 | +enableEmoji = true |
| 10 | +relativeURLs = true |
| 11 | + |
| 12 | +# Book configuration |
| 13 | +disablePathToLower = true |
| 14 | +enableGitInfo = true |
| 15 | + |
| 16 | +# Needed for mermaid/katex shortcodes |
| 17 | +[markup] |
| 18 | +[markup.highlight] |
| 19 | + style = "github" |
| 20 | + #lineNos = true |
| 21 | + |
| 22 | +[markup.goldmark.renderer] |
| 23 | + unsafe = true |
| 24 | + |
| 25 | +[markup.goldmark.parser] |
| 26 | + autoHeadingID = true |
| 27 | + autoHeadingIDType = "github" |
| 28 | + |
| 29 | +[markup.tableOfContents] |
| 30 | + startLevel = 1 |
| 31 | + |
| 32 | +# Multi-lingual mode config |
| 33 | +# There are different options to translate files |
| 34 | +# See https://gohugo.io/content-management/multilingual/#translation-by-filename |
| 35 | +# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory |
| 36 | +[languages] |
| 37 | +[languages.cn] |
| 38 | + lang = '切换语言' |
| 39 | + languageName = '中文' |
| 40 | + contentDir = 'content/cn' |
| 41 | + weight = 1 |
| 42 | + |
| 43 | +[languages.en] |
| 44 | + lang = 'Lang' |
| 45 | + languageName = 'English' |
| 46 | + contentDir = 'content/en' |
| 47 | + weight = 1 |
| 48 | + |
| 49 | +#[menu] |
| 50 | +# [[menu.before]] |
| 51 | +# [[menu.after]] |
| 52 | +# name = "Github" |
| 53 | +# url = "https://github.com/idealvin" |
| 54 | +# weight = 10 |
| 55 | + |
| 56 | +[params] |
| 57 | + # (Optional, default light) Sets color theme: light, dark or auto. |
| 58 | + # Theme 'auto' switches between dark and light modes based on browser/os preferences |
| 59 | + BookTheme = 'light' |
| 60 | + |
| 61 | + # (Optional, default true) Controls table of contents visibility on right side of pages. |
| 62 | + # Start and end levels can be controlled with markup.tableOfContents setting. |
| 63 | + # You can also specify this parameter per page in front matter. |
| 64 | + BookToC = true |
| 65 | + |
| 66 | + # (Optional, default none) Set the path to a logo for the book. If the logo is |
| 67 | + # /static/logo.png then the path would be logo.png |
| 68 | + # BookLogo = 'logo.png' |
| 69 | + |
| 70 | + # (Optional, default none) Set leaf bundle to render as side menu |
| 71 | + # When not specified file structure and weights will be used |
| 72 | + #BookMenuBundle = '/menu' |
| 73 | + |
| 74 | + # (Optional, default docs) Specify root page to render child pages as menu. |
| 75 | + # Page is resoled by .GetPage function: https://gohugo.io/functions/getpage/ |
| 76 | + # For backward compatibility you can set '*' to render all sections to menu. Acts same as '/' |
| 77 | + BookSection = '/' |
| 78 | + |
| 79 | + # Set source repository location. |
| 80 | + # Used for 'Last Modified' and 'Edit this page' links. |
| 81 | + BookRepo = 'https://github.com/idealvin/blog' |
| 82 | + |
| 83 | + # (Optional, default 'commit') Specifies commit portion of the link to the page's last modified |
| 84 | + # commit hash for 'doc' page type. |
| 85 | + # Requires 'BookRepo' param. |
| 86 | + # Value used to construct a URL consisting of BookRepo/BookCommitPath/<commit-hash> |
| 87 | + # Github uses 'commit', Bitbucket uses 'commits' |
| 88 | + # BookCommitPath = 'commit' |
| 89 | + |
| 90 | + # Enable "Edit this page" links for 'doc' page type. |
| 91 | + # Disabled by default. Uncomment to enable. Requires 'BookRepo' param. |
| 92 | + # Edit path must point to root directory of repo. |
| 93 | + BookEditPath = 'edit/main/exampleSite' |
| 94 | + |
| 95 | + # Configure the date format used on the pages |
| 96 | + # - In git information |
| 97 | + # - In blog posts |
| 98 | + BookDateFormat = 'January 2, 2006' |
| 99 | + |
| 100 | + # (Optional, default true) Enables search function with flexsearch, |
| 101 | + # Index is built on fly, therefore it might slowdown your website. |
| 102 | + # Configuration for indexing can be adjusted in i18n folder per language. |
| 103 | + BookSearch = true |
| 104 | + |
| 105 | + # (Optional, default true) Enables comments template on pages |
| 106 | + # By default partals/docs/comments.html includes Disqus template |
| 107 | + # See https://gohugo.io/content-management/comments/#configure-disqus |
| 108 | + # Can be overwritten by same param in page frontmatter |
| 109 | + BookComments = true |
| 110 | + |
| 111 | + cdn = "//cdn.bootcss.com" |
| 112 | + jqueryVersion = "3.5.1" |
| 113 | + mathjaxVersion = "3.0.5" |
| 114 | + highlightjsVersion = "11.1.0" |
| 115 | + highlightjsLang = ["cpp", "bash", "yaml"] |
| 116 | + highlightjsTheme = "github" |
| 117 | + gitalkVersion = "1.7.2" |
| 118 | + gitalkClientID = "78371628e00f43aff18e" |
| 119 | + gitalkClientSecret = "6905d0b807b7008ea04b420bb9fd9a7f390ec400" |
| 120 | + gitalkRepo = "gitalk" |
| 121 | + gitalkOwner = "idealvin" |
0 commit comments