From 0d479ef409bbea75c31006581c03d3a11f981a25 Mon Sep 17 00:00:00 2001 From: daudix Date: Sun, 1 Dec 2024 17:17:34 +0300 Subject: [PATCH] Use table_of_contents string instead of toc --- CHANGELOG.md | 8 +++++++- content/_index.md | 4 ++-- i18n/ar.toml | 1 - i18n/en.toml | 1 - i18n/fa.toml | 1 - sass/style.scss | 2 +- templates/partials/toc.html | 2 +- 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14eac5b..04e3d17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v6.1.0...main) +## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v6.1.1...main) + +## [v6.1.1](https://codeberg.org/daudix/duckquill/compare/v6.1.0...v6.1.1) + +# Fixed + +- Fix translation of table of contents heading. ## [v6.1.0](https://codeberg.org/daudix/duckquill/compare/v6.0.0...v6.1.0) diff --git a/content/_index.md b/content/_index.md index 8795484..575440f 100644 --- a/content/_index.md +++ b/content/_index.md @@ -66,7 +66,7 @@ It is highly recommended to switch from the `main` branch to the latest release: ```bash cd themes/duckquill -git checkout tags/v6.1.0 +git checkout tags/v6.1.1 ``` Then, enable it in your `config.toml`: @@ -80,7 +80,7 @@ To update the theme, simply switch to a new tag: ```bash git submodule update --remote --merge cd themes/duckquill -git checkout tags/v6.1.0 +git checkout tags/v6.1.1 ``` {% alert(important=true) %} diff --git a/i18n/ar.toml b/i18n/ar.toml index 89b7c6f..5d5a9ff 100644 --- a/i18n/ar.toml +++ b/i18n/ar.toml @@ -79,4 +79,3 @@ updated = "تحديث" view_comment = "عرض التعليق على" view_profile = "عرض الملف الشخصي على" warning = "تحذير" -toc = "فهرس" diff --git a/i18n/en.toml b/i18n/en.toml index 4091e5c..e6083d8 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -83,4 +83,3 @@ updated = "Updated on" view_comment = "View Comment At" view_profile = "View Profile At" warning = "Warning" -toc = "Table of Contents" diff --git a/i18n/fa.toml b/i18n/fa.toml index de08e14..f8cb0ca 100644 --- a/i18n/fa.toml +++ b/i18n/fa.toml @@ -83,4 +83,3 @@ updated = "بروزرسانی شده" view_comment = "دیدن نظر در" view_profile = "دیدن حساب کاربری در" warning = "هشدار" -toc = "فهرست" diff --git a/sass/style.scss b/sass/style.scss index 2ca96ee..9e9590f 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -1,5 +1,5 @@ /*! - * Duckquill v6.1.0 (https://duckquill.daudix.one) + * Duckquill v6.1.1 (https://duckquill.daudix.one) * Copyright 2024 David "Daudix" Lapshin * Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE) */ diff --git a/templates/partials/toc.html b/templates/partials/toc.html index db918ee..8e269ee 100644 --- a/templates/partials/toc.html +++ b/templates/partials/toc.html @@ -12,7 +12,7 @@ {%- if page.extra.toc or section.extra.toc -%} {%- if toc | length > 0 -%} -

{{ macros_translate::translate(key="toc", default="Table of Contents", language_strings=language_strings) }}

+

{{ macros_translate::translate(key="table_of_contents", default="Table of Contents", language_strings=language_strings) }}

<{{ list_element }}> {%- for h1 in toc -%}