diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1a3adc3..b56fe14 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,3 +7,8 @@ updates: cooldown: default-days: 7 target-branch: "dev" + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly + target-branch: "dev" diff --git a/.npmrc b/.npmrc index 537f81f..dcb34c5 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,4 @@ -ignore-scripts=true \ No newline at end of file +progress=false +loglevel=error +maxsockets=50 +install-strategy=hoisted \ No newline at end of file diff --git a/assets/css/widgets/code.scss b/assets/css/widgets/code.scss index a391b47..d290e28 100644 --- a/assets/css/widgets/code.scss +++ b/assets/css/widgets/code.scss @@ -25,5 +25,4 @@ article.card-wrapper pre { article.card-wrapper p code { margin: 0 0.25rem; padding: 0.375rem; - white-space: nowrap; } diff --git a/assets/css/widgets/toc.scss b/assets/css/widgets/toc.scss index 5e15236..81e1545 100644 --- a/assets/css/widgets/toc.scss +++ b/assets/css/widgets/toc.scss @@ -13,14 +13,6 @@ overflow-y: auto; } - nav > ul::before { - content: "目次"; - font-size: 120%; - font-weight: 600; - display: block; - margin: 0.4rem 0; - } - ul { > li { font-weight: 520; diff --git a/exampleSite/content/ja/posts/daily/protect-environment.md b/exampleSite/content/ja/posts/daily/protect-environment.md index 3564243..5508ab6 100644 --- a/exampleSite/content/ja/posts/daily/protect-environment.md +++ b/exampleSite/content/ja/posts/daily/protect-environment.md @@ -2,6 +2,7 @@ title: "環境を守ろう" date: 2024-08-19T21:51:19+09:00 draft: false +show_thumb_post: false toc: true tags: [環境, 保全, environment] categories: [Daily] diff --git a/exampleSite/hugo_stats.json b/exampleSite/hugo_stats.json index 125bf77..9ee5e05 100644 --- a/exampleSite/hugo_stats.json +++ b/exampleSite/hugo_stats.json @@ -101,8 +101,9 @@ "card-wrapper", "col", "col-2", - "col-6", + "col-auto", "col-lg-3", + "col-lg-6", "col-lg-9", "col-md-4", "col-md-6", @@ -141,7 +142,9 @@ "fw-medium", "fw-semibold", "g-0", + "g-2", "gap-2", + "gy-3", "h2", "h5", "height-100px", @@ -159,6 +162,7 @@ "m-1", "m-auto", "mb-0", + "mb-1", "mb-2", "mb-3", "mb-4", @@ -179,13 +183,15 @@ "mt-0", "mt-1", "mt-2", - "mt-4", + "mt-3", "mt-auto", + "mt-sm-2", "mx-0", "mx-1", "mx-auto", "my-0", "my-2", + "my-3", "my-4", "nav-item", "nav-link", @@ -225,9 +231,7 @@ "py-1", "py-2", "py-3", - "py-4", "py-5", - "py-md-5", "rounded", "rounded-1", "rounded-circle", @@ -249,6 +253,7 @@ "skill-chart-rows", "skill-chart-scroll", "skill-chart-track", + "sm-mt-2", "sticky", "summary-header", "table", @@ -274,6 +279,7 @@ "timeline-title", "timeline-year", "toc", + "toc-title", "top-0", "visually-hidden", "w-100", diff --git a/i18n/de.yaml b/i18n/de.yaml index 511b65b..3e120aa 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: Kategorien + toc: + other: Inhaltsverzeichnis author: other: AUTOR support: diff --git a/i18n/en.yaml b/i18n/en.yaml index 93b36bb..f07836a 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: Categories + toc: + other: Table of Contents author: other: AUTHOR support: diff --git a/i18n/es.yaml b/i18n/es.yaml index ba0e0e7..1e60916 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: Categorías + toc: + other: Índice author: other: AUTOR support: diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 91f1f98..317772f 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: Catégories + toc: + other: Table des matières author: other: AUTEUR support: diff --git a/i18n/hi.yaml b/i18n/hi.yaml index 2a7b5eb..12dbcbd 100644 --- a/i18n/hi.yaml +++ b/i18n/hi.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: श्रेणियां + toc: + other: विषय सूची author: other: AUTHOR support: diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 484b60e..532bf39 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: カテゴリー + toc: + other: 目次 author: other: AUTHOR support: diff --git a/i18n/ko.yaml b/i18n/ko.yaml index 56ba514..5eb04dc 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: 카테고리 + toc: + other: 목차 author: other: AUTHOR support: diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index ef9f42d..c941ab0 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: 分类 + toc: + other: 目录 author: other: AUTHOR support: diff --git a/i18n/zh-tw.yaml b/i18n/zh-tw.yaml index e9a2d23..45de870 100644 --- a/i18n/zh-tw.yaml +++ b/i18n/zh-tw.yaml @@ -6,6 +6,8 @@ footer: sidebar: categories: other: 分類 + toc: + other: 目錄 author: other: AUTHOR support: diff --git a/layouts/404.html b/layouts/404.html index 20be9fe..b599aeb 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,6 +1,6 @@ {{ define "main" }}

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1d41eff..bfc8f23 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -36,7 +36,7 @@
-
+
{{ block "main" . }}{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c1ecb01..d5c9f4d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@ {{ .Render "summary" }} {{ if .Page.Params.PostsPage | default true }} -
+
{{ T "article.next" }}
{{ with .NextInSection }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 08b981c..bc7249d 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,4 +1,4 @@ -
+
{{ $showThumb := .Page.Params.show_thumb_post | default true }} {{- $thumbnail := .Page.Params.thumbnail | default .Site.Params.defaultThumbnailUrl -}} @@ -70,6 +70,7 @@

{{ .Title }}

{{ if .Params.toc }}
+

{{ i18n "sidebar.toc" }}

{{ .TableOfContents }}
{{ end }} diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html index 3e87f2c..302d78c 100644 --- a/layouts/partials/categories.html +++ b/layouts/partials/categories.html @@ -1,12 +1,12 @@ {{ with .Site.Taxonomies.categories }} -