Skip to content

Commit ed48826

Browse files
committed
发布第一版
1 parent 62530bb commit ed48826

File tree

157 files changed

+16415
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+16415
-2
lines changed

website/config.toml

Lines changed: 131 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,132 @@
1-
baseURL = "http://example.org/"
1+
baseURL = "https://books.halfrost.com/leetcode"
22
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+

website/logo.png

716 KB
Loading

website/public/404.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="description" content="">
8+
<meta name="theme-color" content="#FFFFFF"><meta property="og:title" content="404 Page not found" />
9+
<meta property="og:description" content="" />
10+
<meta property="og:type" content="website" />
11+
<meta property="og:url" content="https://books.halfrost.com/leetcode/404.html" />
12+
13+
<title>404 Page not found | LeetCode Cookbook</title>
14+
<link rel="manifest" href="/leetcode/manifest.json">
15+
<link rel="icon" href="/leetcode/favicon.png" type="image/x-icon">
16+
<link rel="stylesheet" href="/leetcode/book.min.6cd8553a6854f4812343f0f0c8baca31271e686434f381fbe3c7226f66639176.css" integrity="sha256-bNhVOmhU9IEjQ/DwyLrKMSceaGQ084H748cib2ZjkXY=">
17+
<script defer src="/leetcode/en.search.min.b89b298482a620ecdc3740829351c9d8b19cc485f00b83eaf4b57f44e1cb7e23.js" integrity="sha256-uJsphIKmIOzcN0CCk1HJ2LGcxIXwC4Pq9LV/ROHLfiM="></script>
18+
<!--
19+
Made with Book Theme
20+
https://github.com/alex-shpak/hugo-book
21+
-->
22+
23+
24+
25+
<style>
26+
.not-found {
27+
text-align: center;
28+
}
29+
.not-found h1 {
30+
margin: .25em 0 0 0;
31+
opacity: .25;
32+
font-size: 40vmin;
33+
}
34+
</style>
35+
</head>
36+
37+
<body>
38+
<main class="flex justify-center not-found">
39+
<div>
40+
<h1>404</h1>
41+
<h2>Page Not Found</h2>
42+
<h3>
43+
<a href="/leetcode/">LeetCode Cookbook</a>
44+
</h3>
45+
</div>
46+
</main>
47+
48+
49+
50+
</body>
51+
52+
</html>

website/public/book.min.6cd8553a6854f4812343f0f0c8baca31271e686434f381fbe3c7226f66639176.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)