diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6c2df2c..6e86c62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ jobs: matrix: hugo-version: - 'latest' - - '0.134.2' + - '0.146.7' steps: - uses: actions/checkout@v4 with: diff --git a/README.md b/README.md index fa0c304..f37dc81 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Hugo Book Theme -[![Hugo](https://img.shields.io/badge/hugo-0.134-blue.svg)](https://gohugo.io) +[![Hugo](https://img.shields.io/badge/hugo-0.146-blue.svg)](https://gohugo.io) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) ![Build with Hugo](https://github.com/alex-shpak/hugo-book/workflows/Build%20with%20Hugo/badge.svg) @@ -33,7 +33,7 @@ ## Requirements -- Hugo 0.134 or higher +- Hugo 0.146 or higher - Hugo extended version, [Installation Instructions](https://gohugo.io/installation/) ## Installation @@ -298,7 +298,7 @@ If you are using `config.yaml` or `config.json`, consult the [configuration mark ## Versioning -This theme follows a simple incremental versioning. e.g. `v1`, `v2` and so on. There might be breaking changes between versions. +This theme follows a simple incremental versioning. e.g. `v1.0.0`, `v2.0.0` and so on. Releases will happen on breaking changes. If you want lower maintenance, use one of the released versions. If you want to live on the bleeding edge of changes, you can use the `master` branch and update your website when needed. diff --git a/assets/_main.scss b/assets/_main.scss index 8b4e687..25eed41 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -49,11 +49,11 @@ aside nav ul { list-style: none; li { - margin: 1em 0; position: relative; } - a { + a, span { + padding: .5em 0; display: block; } @@ -136,10 +136,12 @@ a .book-icon { input.toggle + label::after { content: "▸"; + align-self: center; } input.toggle:checked + label::after { content: "▾"; + align-self: center; } } @@ -155,7 +157,7 @@ body[dir="rtl"] .book-menu { } .book-section-flat { - margin: $padding-16 * 2 0; + margin: $padding-16 0; > a, > span, @@ -175,7 +177,7 @@ body[dir="rtl"] .book-menu { } .book-post { - margin-bottom: $padding-16 * 2; + margin-bottom: $padding-16 * 4; .book-post-date img { height: 1em; @@ -210,7 +212,7 @@ body[dir="rtl"] .book-menu { .book-search { position: relative; - margin: $padding-16 0; + margin: $padding-8 0; border-bottom: 1px solid transparent; input { @@ -244,6 +246,10 @@ body[dir="rtl"] .book-menu { @include spin(1s); } + ul a { + padding-bottom: 0; + } + small { opacity: 0.5; } @@ -280,7 +286,7 @@ body[dir="rtl"] .book-menu { } .book-languages { - margin-block-end: $padding-16 * 2; + margin-bottom: $padding-16; ul { padding-inline-start: 1.5em; diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml new file mode 100644 index 0000000..96216a0 --- /dev/null +++ b/i18n/pt-BR.yaml @@ -0,0 +1,14 @@ +- id: Search + translation: Buscar + +- id: Edit this page + translation: Editar página + +- id: Last modified by + translation: Última modificação por + +- id: Expand + translation: Expandir + +- id: bookSearchConfig + translation: '{ cache: true }' diff --git a/i18n/pt.yaml b/i18n/pt.yaml index 96216a0..95523f9 100644 --- a/i18n/pt.yaml +++ b/i18n/pt.yaml @@ -1,5 +1,5 @@ - id: Search - translation: Buscar + translation: Pesquisar - id: Edit this page translation: Editar página diff --git a/layouts/partials/docs/brand.html b/layouts/_partials/docs/brand.html similarity index 100% rename from layouts/partials/docs/brand.html rename to layouts/_partials/docs/brand.html diff --git a/layouts/partials/docs/comments.html b/layouts/_partials/docs/comments.html similarity index 100% rename from layouts/partials/docs/comments.html rename to layouts/_partials/docs/comments.html diff --git a/layouts/partials/docs/date.html b/layouts/_partials/docs/date.html similarity index 100% rename from layouts/partials/docs/date.html rename to layouts/_partials/docs/date.html diff --git a/layouts/partials/docs/footer.html b/layouts/_partials/docs/footer.html similarity index 100% rename from layouts/partials/docs/footer.html rename to layouts/_partials/docs/footer.html diff --git a/layouts/partials/docs/header.html b/layouts/_partials/docs/header.html similarity index 100% rename from layouts/partials/docs/header.html rename to layouts/_partials/docs/header.html diff --git a/layouts/partials/docs/html-head-favicon.html b/layouts/_partials/docs/html-head-favicon.html similarity index 100% rename from layouts/partials/docs/html-head-favicon.html rename to layouts/_partials/docs/html-head-favicon.html diff --git a/layouts/partials/docs/html-head-title.html b/layouts/_partials/docs/html-head-title.html similarity index 100% rename from layouts/partials/docs/html-head-title.html rename to layouts/_partials/docs/html-head-title.html diff --git a/layouts/partials/docs/html-head.html b/layouts/_partials/docs/html-head.html similarity index 100% rename from layouts/partials/docs/html-head.html rename to layouts/_partials/docs/html-head.html diff --git a/layouts/partials/docs/inject/body.html b/layouts/_partials/docs/inject/body.html similarity index 100% rename from layouts/partials/docs/inject/body.html rename to layouts/_partials/docs/inject/body.html diff --git a/layouts/partials/docs/inject/content-after.html b/layouts/_partials/docs/inject/content-after.html similarity index 100% rename from layouts/partials/docs/inject/content-after.html rename to layouts/_partials/docs/inject/content-after.html diff --git a/layouts/partials/docs/inject/content-before.html b/layouts/_partials/docs/inject/content-before.html similarity index 100% rename from layouts/partials/docs/inject/content-before.html rename to layouts/_partials/docs/inject/content-before.html diff --git a/layouts/partials/docs/inject/footer.html b/layouts/_partials/docs/inject/footer.html similarity index 100% rename from layouts/partials/docs/inject/footer.html rename to layouts/_partials/docs/inject/footer.html diff --git a/layouts/partials/docs/inject/head.html b/layouts/_partials/docs/inject/head.html similarity index 100% rename from layouts/partials/docs/inject/head.html rename to layouts/_partials/docs/inject/head.html diff --git a/layouts/partials/docs/inject/menu-after.html b/layouts/_partials/docs/inject/menu-after.html similarity index 100% rename from layouts/partials/docs/inject/menu-after.html rename to layouts/_partials/docs/inject/menu-after.html diff --git a/layouts/partials/docs/inject/menu-before.html b/layouts/_partials/docs/inject/menu-before.html similarity index 100% rename from layouts/partials/docs/inject/menu-before.html rename to layouts/_partials/docs/inject/menu-before.html diff --git a/layouts/partials/docs/inject/toc-after.html b/layouts/_partials/docs/inject/toc-after.html similarity index 100% rename from layouts/partials/docs/inject/toc-after.html rename to layouts/_partials/docs/inject/toc-after.html diff --git a/layouts/partials/docs/inject/toc-before.html b/layouts/_partials/docs/inject/toc-before.html similarity index 100% rename from layouts/partials/docs/inject/toc-before.html rename to layouts/_partials/docs/inject/toc-before.html diff --git a/layouts/partials/docs/languages.html b/layouts/_partials/docs/languages.html similarity index 89% rename from layouts/partials/docs/languages.html rename to layouts/_partials/docs/languages.html index 51aabdd..90d3f82 100644 --- a/layouts/partials/docs/languages.html +++ b/layouts/_partials/docs/languages.html @@ -13,8 +13,8 @@