diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 07743e1..81f8833 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -4,7 +4,7 @@ body: - type: markdown attributes: value: | - 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/). + 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/). - type: textarea id: what-happened attributes: diff --git a/assets/scss/partials/menu.scss b/assets/scss/partials/menu.scss index 19476ac..5b6be17 100644 --- a/assets/scss/partials/menu.scss +++ b/assets/scss/partials/menu.scss @@ -212,7 +212,7 @@ } } -.social-menu { +.menu-social { list-style: none; padding: 0; margin: 0; diff --git a/exampleSite/config/_default/menu.yaml b/exampleSite/config/_default/menu.yaml index 4cfd6c3..811ff41 100644 --- a/exampleSite/config/_default/menu.yaml +++ b/exampleSite/config/_default/menu.yaml @@ -1,5 +1,5 @@ ### Custom menu -### See https://docs.stack.jimmycai.com/configuration/custom-menu.html +### See https://stack.jimmycai.com/config/menu ### To remove about, archive and search page menu item, remove `menu` field from their FrontMatter main: [] social: diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 83c0885..677b5c8 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -2,6 +2,11 @@ toggleMenu: メニューを開く・閉じる darkMode: ダークモード +list: + page: "{{ .Count }} ページ目" + section: セクション + subsection: サブセクション + article: back: 前のページ tableOfContents: 目次 @@ -24,5 +29,5 @@ search: resultTitle: "#PAGES_COUNT 件 (#TIME_SECONDS 秒)" footer: - builtWith: Built with {{ .Generator }} + builtWith: "{{ .Generator }} で構築されています。" designedBy: テーマ {{ .Theme }} は {{ .DesignedBy }} によって設計されています。 diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..aa12d7d --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,4 @@ +<h{{ .Level }} id="{{ .Anchor }}"> + <a href="#{{ .Anchor }}">#</a> + {{ .Text | safeHTML }} +</h{{ .Level }}> \ No newline at end of file diff --git a/layouts/partials/article/components/links.html b/layouts/partials/article/components/links.html index 118dbb3..a2ac26c 100644 --- a/layouts/partials/article/components/links.html +++ b/layouts/partials/article/components/links.html @@ -16,8 +16,12 @@ </div> {{ with $link.image }} + {{ $permalink := . }} + {{ with ($.Resources.GetMatch (printf "%s" (. | safeURL))) }} + {{ $permalink = .RelPermalink }} + {{ end }} <div class="article-image"> - <img src="{{ . }}" loading="lazy"> + <img src="{{ $permalink }}" loading="lazy"> </div> {{ end }} </a> diff --git a/layouts/partials/article/components/math.html b/layouts/partials/article/components/math.html index 8e62151..bd1a7f8 100644 --- a/layouts/partials/article/components/math.html +++ b/layouts/partials/article/components/math.html @@ -1,7 +1,7 @@ {{- partial "helper/external" (dict "Context" . "Namespace" "KaTeX") -}} <script> window.addEventListener("DOMContentLoaded", () => { - renderMathInElement(document.querySelector(`.article-content`), { + renderMathInElement(document.body, { delimiters: [ { left: "$$", right: "$$", display: true }, { left: "$", right: "$", display: false }, diff --git a/layouts/partials/sidebar/left.html b/layouts/partials/sidebar/left.html index 2dc879a..681bad3 100644 --- a/layouts/partials/sidebar/left.html +++ b/layouts/partials/sidebar/left.html @@ -27,7 +27,7 @@ </header> {{- with .Site.Menus.social -}} - <ol class="social-menu"> + <ol class="menu-social"> {{ range . }} <li> <a @@ -54,7 +54,7 @@ <a href='{{ .URL }}' {{ if eq .Params.newTab true }}target="_blank"{{ end }}> {{ $icon := default .Pre .Params.Icon }} {{ if .Pre }} - {{ 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 }} + {{ 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 }} {{ end }} {{ with $icon }} {{ partial "helper/icon" . }}