diff --git a/assets/scss/partials/layout/archives.scss b/assets/scss/partials/layout/archives.scss index 569348e..2ac3836 100644 --- a/assets/scss/partials/layout/archives.scss +++ b/assets/scss/partials/layout/archives.scss @@ -1,15 +1,5 @@ .archives-group { margin-bottom: var(--section-separation); - .archives-date { - text-transform: uppercase; - margin-bottom: 10px; - font-size: 1.6rem; - font-weight: bold; - - a { - color: var(--body-text-color); - } - } } .template-archives { diff --git a/assets/scss/partials/layout/taxonomy.scss b/assets/scss/partials/layout/taxonomy.scss index d594b23..4575a20 100644 --- a/assets/scss/partials/layout/taxonomy.scss +++ b/assets/scss/partials/layout/taxonomy.scss @@ -1,11 +1,3 @@ -.taxonomy-type { - text-transform: uppercase; - color: var(--body-text-color); - font-weight: bold; - margin-bottom: 5px; - font-size: 1.6rem; -} - .taxonomy-card { border-radius: var(--card-border-radius); background-color: var(--card-background); diff --git a/assets/scss/partials/widgets.scss b/assets/scss/partials/widgets.scss index 25661e7..33a02dd 100644 --- a/assets/scss/partials/widgets.scss +++ b/assets/scss/partials/widgets.scss @@ -1,13 +1,4 @@ .widget { - .widget-title { - text-transform: uppercase; - color: var(--body-text-color); - font-weight: bold; - margin: 0; - margin-bottom: 10px; - font-size: 1.6rem; - } - .widget-icon { svg { width: 32px; @@ -45,27 +36,26 @@ /* Archives widget */ .widget.archives { + .widget-archive--list { + border-radius: var(--card-border-radius); + box-shadow: var(--shadow-l1); + background-color: var(--card-background); + } + .archives-year { - margin-bottom: 10px; + &:not(:last-of-type) { + border-bottom: 1.5px solid var(--card-separator-color); + } + a { - background-color: var(--card-background); - padding: 15px 25px; - border-radius: var(--card-border-radius); - box-shadow: var(--shadow-l1); + font-size: 1.4rem; + padding: 18px 25px; display: flex; - transition: box-shadow 0.3s ease; - - &:hover { - box-shadow: var(--shadow-l2); - } - - @media (max-width: $on-desktop-large) { - font-size: 1.4rem; - } span.year { flex: 1; color: var(--card-text-color-main); + font-weight: bold; } span.count { diff --git a/assets/scss/style.scss b/assets/scss/style.scss index dc7000d..bcbd41d 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -41,4 +41,18 @@ a { box-shadow: 0px -10px 0px rgba(var(--link-background-color), var(--link-background-opacity-hover)) inset; } } -} \ No newline at end of file +} + +.section-title { + text-transform: uppercase; + margin-top: 0; + margin-bottom: 10px; + display: block; + font-size: 1.6rem; + font-weight: bold; + color: var(--body-text-color); + + a { + color: var(--body-text-color); + } +} diff --git a/i18n/ja.toml b/i18n/ja.toml new file mode 100644 index 0000000..0581364 --- /dev/null +++ b/i18n/ja.toml @@ -0,0 +1,23 @@ +[toggleMenu] + other = "メニューを開く・閉じる" + +[relatedContents] + other = "関連するコンテンツ" + +[lastUpdatedOn] + other = "最終更新" + +[widgetArchivesTitle] + other = "アーカイブ" + +[widgetArchivesMore] + other = "さらに見る" + +[widgetTagCloudTitle] + other = "タグ" + +[notFoundTitle] + other = "404 Not Found" + +[notFoundSubtitle] + other = "指定されたページは存在しません。" \ No newline at end of file diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index cf9ef94..0304832 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -2,14 +2,12 @@ {{ define "main" }} {{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{ if $categories }} -
-

Categories

-
-
- {{ range $categories }} - {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }} - {{ end }} -
+

Categories

+
+
+ {{ range $categories }} + {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "taxonomy") }} + {{ end }}
{{ end }} @@ -21,7 +19,7 @@ {{ range $filtered.GroupByDate "2006" }} {{ $id := lower (replace .Key " " "-") }}
-

{{ .Key }}

+

{{ .Key }}

{{ range .Pages }} {{ partial "article-list/compact" . }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 3189e9a..3bfcc28 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -1,5 +1,5 @@ {{ define "main" }} -

{{ .Type | singularize | humanize }}

+

{{ .Type | singularize | humanize }}

{{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}

diff --git a/layouts/index.html b/layouts/index.html index 1811bd2..b04b926 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -15,5 +15,5 @@ {{ end }} {{ define "right-sidebar" }} - {{ partialCached "sidebar/right.html" . }} + {{ partial "sidebar/right.html" . }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/article/components/related-contents.html b/layouts/partials/article/components/related-contents.html index b06fce6..1265387 100644 --- a/layouts/partials/article/components/related-contents.html +++ b/layouts/partials/article/components/related-contents.html @@ -1,7 +1,7 @@ -