Skip to content

Commit 747a07b

Browse files
Shawn VausejamesmcmurryCaiJimmyhongjr03L-Super
authored
Latest upstream with my customizations preserved (#3)
* fix(sidebar): hide translations selector if only one translation available (CaiJimmy#950) hide translations menu if only one translation available * release: 3.22.0 * fix(sidebar): translation selector - avoid cast per PR CaiJimmy#950 (CaiJimmy#961) avoid cast per PR CaiJimmy#950 * feat(comments): add support for Beaudar(表达)comment system (CaiJimmy#931) https://beaudar.lipk.org/ * fix(comment): moved waline `placeholder` parameter to `locale.placeholder` (CaiJimmy#914) fix waline parameter * fix(sidebar): improve accessibility of sidebar bottom menu (CaiJimmy#925) * fix(menu): <ol> containing other than <li>, <script> or <template> elements * fix(menu): add title to language select menu * release: 3.23.0 * fix(i18n): add missing `zh-cn` translations (CaiJimmy#964) * feat: update Hugo version and minimum version requirement to 0.123.0 (CaiJimmy#970) * fix: `.Site.LastChange` deprecation (CaiJimmy#968) Fix the deprecation warning emitted from Hugo, and fix the typo in ` exampleSite/content/page/about/index.md` * feat: bump KaTeX to latest released version `0.16.9` (CaiJimmy#969) Bump KaTeX to latest released version 0.16.9 * fix(sidebar): menu-bottom-section not showing in mobile (CaiJimmy#966) * fix(sidebar): Bottom section not showing in mobile * fix(sidebar): Align bottom section to bottom * fix(sidebar): Gap missing in bottom section * refactor(sidebar): Simplify styles * refactor(sidebar): Remove useless padding-left * refactor(sidebar): Remove useless margin-top * refactor(sidebar): Combine duplicate flex-direction * refactor(sidebar): Remove redundant width * release: 3.24.0 * fix(head): prevent Go template from escaping HTML entities in meta description (CaiJimmy#973) * fix: favicon does not load if baseurl includes a subfolder (CaiJimmy#972) Use relURL https://gohugo.io/functions/urls/relurl/ * release: 3.24.1 * fix: remove `\n` character from meta description (CaiJimmy#980) * fix: deprecation warning for `.Site.Author` (CaiJimmy#979) Fix deprecation warning for .Site.Author, deprecated in Hugo 0.124.0 * release 3.24.2 * fix: use page resource permalink in link image (CaiJimmy#990) closes CaiJimmy#982 * docs: update some invalid documentation links (CaiJimmy#983) Update some documentation links (some were dead links) * feat(i18n): update translations for `ja` (CaiJimmy#984) * feat(i18n): update translations for `ja` * Apply review suggestions * fix(i18n): wrap `footer.builtWith` with double quotes in Japanese translation (CaiJimmy#991) * feat: add anchor link to markdown heading (CaiJimmy#992) closes CaiJimmy#935 * fix: rename `.social-menu` to `.menu-social` to avoid being blocked by ad blockers (CaiJimmy#993) closes CaiJimmy#924 * fix: make KaTeX render all math inside `document.body` (CaiJimmy#994) Since it only accepts one element, I cannot pass `.article-content` and `#TableOfContent` to it. The official documentation uses `document.body` directly, so I guess that's fine. closes CaiJimmy#882 * release: 3.25.0 * Fix to dark mode toggle * Style fixes * Style fixes * Style fix * Tweak * Fix * Remove hash sign * Make sub heading text the anchor --------- Co-authored-by: James McMurry <jmcmurry@semanticnoise.com> Co-authored-by: Jimmy Cai <hi@jimmycai.com> Co-authored-by: Jiarong Hong <64763790+hongjr03@users.noreply.github.com> Co-authored-by: L-Super <40905056+L-Super@users.noreply.github.com> Co-authored-by: Jiahao Li <42709836+TheJiahao@users.noreply.github.com> Co-authored-by: Zeyu Huang <fhfuih@outlook.com> Co-authored-by: Andreas Deininger <andreas@deininger.net> Co-authored-by: Andrew Doering <delize@users.noreply.github.com> Co-authored-by: andrewmoise <andrew.moise@gmail.com> Co-authored-by: Shun Sakai <sorairolake@protonmail.ch>
1 parent ce8c380 commit 747a07b

File tree

22 files changed

+124
-40
lines changed

22 files changed

+124
-40
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body:
44
- type: markdown
55
attributes:
66
value: |
7-
Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://stack.jimmycai.com/).
7+
Thanks for taking the time to fill out this bug report! Please provide as much information as possible and make sure you have checked the [documentation](https://stack.jimmycai.com/guide/).
88
- type: textarea
99
id: what-happened
1010
attributes:

assets/scss/partials/menu.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
}
128128

129129
/* Menu style */
130-
.menu {
130+
#main-menu {
131131
padding-left: 0;
132132
list-style: none;
133133
flex-direction: column;
@@ -141,13 +141,15 @@
141141
margin: 0 calc(var(--container-padding) * -1);
142142

143143
padding: 30px 30px;
144+
144145
@include respond(xl) {
145146
padding: 15px 0;
146147
}
147148

148149
&,
149150
.menu-bottom-section {
150151
gap: 30px;
152+
151153
@include respond(xl) {
152154
gap: 25px;
153155
}
@@ -210,7 +212,7 @@
210212
}
211213
}
212214

213-
.social-menu {
215+
.menu-social {
214216
list-style: none;
215217
padding: 0;
216218
margin: 0;

config.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ params:
6060
issueTerm: pathname
6161
label:
6262

63+
beaudar:
64+
repo:
65+
issueTerm: pathname
66+
label:
67+
theme:
68+
6369
remark42:
6470
host:
6571
site:
@@ -73,7 +79,7 @@ params:
7379
clientSecret:
7480
autoCreateIssue: false
7581

76-
# Waline client configuration see: https://waline.js.org/en/reference/client.html
82+
# Waline client configuration see: https://waline.js.org/en/reference/client/props.html
7783
waline:
7884
serverURL:
7985
lang:
@@ -84,9 +90,9 @@ params:
8490
requiredMeta:
8591
- nick
8692
- mail
87-
placeholder:
8893
locale:
8994
admin: Admin
95+
placeholder:
9096

9197
twikoo:
9298
envId:

data/external.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ PhotoSwipe:
2121
type: style
2222

2323
KaTeX:
24-
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/katex.min.css
25-
integrity: sha256-J+iAE0sgH8QSz9hpcDxXIftnj65JEZgNhGcgReTTK9s=
24+
- src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css
25+
integrity: sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV
2626
type: style
2727

28-
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/katex.min.js
29-
integrity: sha256-InsNdER1b2xUewP+pKCUJpkhiqwHgqiPXDlIk7GzBu4=
28+
- src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js
29+
integrity: sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8
3030
type: script
3131
defer: true
3232

33-
- src: https://cdn.jsdelivr.net/npm/katex@0.15.6/dist/contrib/auto-render.min.js
34-
integrity: sha256-y39Mpg7V3D4lhBX4x6O0bUqTV4pSrfgwEfGKfxkOdgI=
33+
- src: https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js
34+
integrity: sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05
3535
type: script
3636
defer: true
3737

exampleSite/content/page/about/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ menu:
1515
icon: user
1616
---
1717

18-
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
18+
Written in Go, Hugo is an open source static site generator available under the [Apache License 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
1919

2020
Hugo makes use of a variety of open source projects including:
2121

@@ -29,6 +29,6 @@ Hugo is ideal for blogs, corporate websites, creative portfolios, online magazin
2929

3030
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
3131

32-
Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
32+
Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
3333

3434
Learn more and contribute on [GitHub](https://github.com/gohugoio).

exampleSite/content/post/math-typesetting/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ In this example we will be using [KaTeX](https://katex.org/)
2121
{{ end }}
2222
```
2323
24-
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
25-
- To enable KaTex on a per page basis include the parameter `math: true` in content files
24+
- To enable KaTeX globally set the parameter `math` to `true` in a project's configuration
25+
- To enable KaTeX on a per page basis include the parameter `math: true` in content files
2626
2727
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
2828
2929
{{< math.inline >}}
3030
{{ if or .Page.Params.math .Site.Params.math }}
3131
<!-- KaTeX -->
32-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
33-
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
34-
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
32+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
33+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
34+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
3535
{{ end }}
3636
{{</ math.inline >}}
3737

exampleSite/config.yaml renamed to exampleSite/hugo.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ params:
101101
issueTerm: pathname
102102
label:
103103

104+
beaudar:
105+
repo:
106+
issueTerm: pathname
107+
label:
108+
theme:
109+
104110
remark42:
105111
host:
106112
site:
@@ -205,7 +211,7 @@ params:
205211
enabled: true
206212

207213
### Custom menu
208-
### See https://docs.stack.jimmycai.com/configuration/custom-menu.html
214+
### See https://stack.jimmycai.com/config/menu
209215
### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter
210216
menu:
211217
main: []

i18n/ja.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ toggleMenu:
44
darkMode:
55
other: ダークモード
66

7+
list:
8+
page:
9+
other: "{{ .Count }} ページ目"
10+
11+
section:
12+
other: セクション
13+
14+
subsection:
15+
other: サブセクション
16+
717
article:
818
back:
919
other: 前のページ
@@ -54,7 +64,7 @@ search:
5464

5565
footer:
5666
builtWith:
57-
other: Built with {{ .Generator }}
67+
other: "{{ .Generator }} で構築されています。"
5868

5969
designedBy:
6070
other: テーマ {{ .Theme }} は {{ .DesignedBy }} によって設計されています。

i18n/zh-cn.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ toggleMenu:
44
darkMode:
55
other: 暗色模式
66

7+
list:
8+
page: "{{ .Count }} 个页面"
9+
10+
section: 章节
11+
12+
subsection: 子章节
13+
714
article:
815
back:
916
other: 返回
@@ -54,7 +61,7 @@ search:
5461

5562
footer:
5663
builtWith:
57-
other: Built with {{ .Generator }}
64+
other: 使用 {{ .Generator }} 构建
5865

5966
designedBy:
6067
other: 主题 {{ .Theme }} 由 {{ .DesignedBy }} 设计
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<h{{ .Level }} id="{{ .Anchor }}">
2+
<a href="#{{ .Anchor }}">{{ .Text | safeHTML }}</a>
3+
</h{{ .Level }}>

layouts/_default/rss.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<link>{{ .Permalink }}</link>
1919
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
2020
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
21-
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
22-
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
23-
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
21+
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
22+
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
23+
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
2424
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
2525
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
2626
{{- with .OutputFormats.Get "RSS" -}}
@@ -35,7 +35,7 @@
3535
<title>{{ .Title }}</title>
3636
<link>{{ .Permalink }}</link>
3737
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
38-
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
38+
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
3939
<guid>{{ .Permalink }}</guid>
4040
<description>
4141
{{- $image := partial "helper/image" (dict "Context" . "Type" "rss") -}}

layouts/partials/article/components/links.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ <h2 class="article-title">
1616
</div>
1717

1818
{{ with $link.image }}
19+
{{ $permalink := . }}
20+
{{ with ($.Resources.GetMatch (printf "%s" (. | safeURL))) }}
21+
{{ $permalink = .RelPermalink }}
22+
{{ end }}
1923
<div class="article-image">
20-
<img src="{{ . }}" loading="lazy">
24+
<img src="{{ $permalink }}" loading="lazy">
2125
</div>
2226
{{ end }}
2327
</a>

layouts/partials/article/components/math.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}}
22
<script>
33
window.addEventListener("DOMContentLoaded", () => {
4-
renderMathInElement(document.querySelector(`.article-content`), {
4+
renderMathInElement(document.body, {
55
delimiters: [
66
{ left: "$$", right: "$$", display: true },
77
{ left: "$", right: "$", display: false },
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<script
2+
src="https://beaudar.lipk.org/client.js"
3+
repo="{{ .Site.Params.comments.beaudar.repo }}"
4+
issue-term="{{ .Site.Params.comments.beaudar.issueTerm }}"
5+
{{ with .Site.Params.comments.beaudar.label }}
6+
label="{{ . }}"
7+
{{ end }}
8+
theme="{{ .Site.Params.comments.beaudar.theme }}"
9+
crossorigin="anonymous"
10+
async
11+
></script>
12+
13+
<style>
14+
.beaudar {
15+
max-width: unset;
16+
}
17+
</style>
18+
19+
<script>
20+
let beaudarLoaded = false;
21+
22+
function setBeaudarTheme(theme) {
23+
let beaudar = document.querySelector(".beaudar iframe");
24+
if (beaudar) {
25+
beaudar.contentWindow.postMessage(
26+
{
27+
type: "set-theme",
28+
theme: `github-${theme}`,
29+
},
30+
"https://beaudar.lipk.org"
31+
);
32+
}
33+
}
34+
35+
addEventListener("message", (event) => {
36+
if (event.origin !== "https://beaudar.lipk.org") return;
37+
/// Called when Beaudar is ready
38+
beaudarLoaded = true;
39+
setBeaudarTheme(document.documentElement.dataset.scheme);
40+
});
41+
42+
window.addEventListener("onColorSchemeChange", (e) => {
43+
if (!beaudarLoaded) return;
44+
setBeaudarTheme(e.detail);
45+
});
46+
</script>

layouts/partials/data/description.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
{{ $description = .Summary }}
1515
{{ end }}
1616

17-
{{ return ($description | plainify)}}
17+
{{ return (replaceRE "\n" " " $description | plainify) }}

layouts/partials/footer/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- $ThemeVersion := "3.21.0" -}}
1+
{{- $ThemeVersion := "3.25.0" -}}
22
<footer class="site-footer">
33
<section class="copyright">
44
&copy;

layouts/partials/head/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{- end -}}
2222

2323
{{ with .Site.Params.favicon }}
24-
<link rel="shortcut icon" href="{{ . }}" />
24+
<link rel="shortcut icon" href="{{ . | relURL }}" />
2525
{{ end }}
2626

2727
{{- template "_internal/google_analytics.html" . -}}

layouts/partials/head/opengraph/provider/base.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- $title := partialCached "data/title" . .RelPermalink -}}
22
{{- $description := partialCached "data/description" . .RelPermalink -}}
33

4-
<meta property='og:title' content='{{ $title }}'>
5-
<meta property='og:description' content='{{ $description }}'>
4+
<meta property='og:title' {{ printf "content=%q" $title | safeHTMLAttr }}>
5+
<meta property='og:description' {{ printf "content=%q" $description | safeHTMLAttr }}>
66
<meta property='og:url' content='{{ .Permalink }}'>
77
<meta property='og:site_name' content='{{ .Site.Title }}'>
88
<meta property='og:type' content='
@@ -32,8 +32,8 @@
3232
<meta property='article:modified_time' content='{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}'/>
3333
{{- end -}}
3434
{{- else -}}
35-
{{- if not .Site.LastChange.IsZero -}}
36-
<meta property='og:updated_time' content='{{ .Site.LastChange.Format " 2006-01-02T15:04:05-07:00 " | safeHTML }}'/>
35+
{{- if not .Site.Lastmod.IsZero -}}
36+
<meta property='og:updated_time' content='{{ .Site.Lastmod.Format " 2006-01-02T15:04:05-07:00 " | safeHTML }}'/>
3737
{{- end -}}
3838
{{- end -}}
3939

layouts/partials/head/opengraph/provider/twitter.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
{{- $title := partialCached "data/title" . .RelPermalink -}}
77
{{- $description := partialCached "data/description" . .RelPermalink -}}
88

9-
<meta name="twitter:title" content="{{ $title }}">
10-
<meta name="twitter:description" content="{{ $description }}">
9+
<meta name="twitter:title" {{ printf "content=%q" $title | safeHTMLAttr }}>
10+
<meta name="twitter:description" {{ printf "content=%q" $description | safeHTMLAttr }}>
1111

1212
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink "opengraph" -}}
1313
{{- if $image.exists -}}

layouts/partials/sidebar/left.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
4242
</header>
4343

4444
{{- with .Site.Menus.social -}}
45-
<ol class="social-menu">
45+
<ol class="menu-social">
4646
{{ range . }}
4747
<li>
4848
<a
@@ -69,7 +69,7 @@ <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
6969
<a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}>
7070
{{ $icon := default .Pre .Params.Icon }}
7171
{{ if .Pre }}
72-
{{ warnf "Menu item [%s] is using [pre] field to set icon, please use [params.icon] instead.\nMore information: https://docs.stack.jimmycai.com/configuration/custom-menu.html" .URL }}
72+
{{ warnf "Menu item [%s] is using [pre] field to set icon, please use [params.icon] instead.\nMore information: https://stack.jimmycai.com/config/menu" .URL }}
7373
{{ end }}
7474
{{ with $icon }}
7575
{{ partial "helper/icon" . }}

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
publish = "exampleSite/public"
33

44
[build.environment]
5-
HUGO_VERSION = "0.117.0"
5+
HUGO_VERSION = "0.124.0"
66
HUGO_THEME = "repo"
77

88
[context.production]

theme.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ features = [
2020
"search",
2121
]
2222

23-
min_version = "0.87.0"
23+
min_version = "0.123.0"
2424

2525
[author]
2626
name = "Jimmy Cai"

0 commit comments

Comments
 (0)