Use table_of_contents string instead of toc

This commit is contained in:
daudix
2024-12-01 17:17:34 +03:00
parent 60e8168876
commit 0d479ef409
7 changed files with 11 additions and 8 deletions

View File

@ -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/), 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). 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) ## [v6.1.0](https://codeberg.org/daudix/duckquill/compare/v6.0.0...v6.1.0)

View File

@ -66,7 +66,7 @@ It is highly recommended to switch from the `main` branch to the latest release:
```bash ```bash
cd themes/duckquill cd themes/duckquill
git checkout tags/v6.1.0 git checkout tags/v6.1.1
``` ```
Then, enable it in your `config.toml`: Then, enable it in your `config.toml`:
@ -80,7 +80,7 @@ To update the theme, simply switch to a new tag:
```bash ```bash
git submodule update --remote --merge git submodule update --remote --merge
cd themes/duckquill cd themes/duckquill
git checkout tags/v6.1.0 git checkout tags/v6.1.1
``` ```
{% alert(important=true) %} {% alert(important=true) %}

View File

@ -79,4 +79,3 @@ updated = "تحديث"
view_comment = "عرض التعليق على" view_comment = "عرض التعليق على"
view_profile = "عرض الملف الشخصي على" view_profile = "عرض الملف الشخصي على"
warning = "تحذير" warning = "تحذير"
toc = "فهرس"

View File

@ -83,4 +83,3 @@ updated = "Updated on"
view_comment = "View Comment At" view_comment = "View Comment At"
view_profile = "View Profile At" view_profile = "View Profile At"
warning = "Warning" warning = "Warning"
toc = "Table of Contents"

View File

@ -83,4 +83,3 @@ updated = "بروزرسانی شده"
view_comment = "دیدن نظر در" view_comment = "دیدن نظر در"
view_profile = "دیدن حساب کاربری در" view_profile = "دیدن حساب کاربری در"
warning = "هشدار" warning = "هشدار"
toc = "فهرست"

View File

@ -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 * Copyright 2024 David "Daudix" Lapshin
* Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE) * Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE)
*/ */

View File

@ -12,7 +12,7 @@
{%- if page.extra.toc or section.extra.toc -%} {%- if page.extra.toc or section.extra.toc -%}
{%- if toc | length > 0 -%} {%- if toc | length > 0 -%}
<h2>{{ macros_translate::translate(key="toc", default="Table of Contents", language_strings=language_strings) }}</h2> <h2>{{ macros_translate::translate(key="table_of_contents", default="Table of Contents", language_strings=language_strings) }}</h2>
<{{ list_element }}> <{{ list_element }}>
{%- for h1 in toc -%} {%- for h1 in toc -%}
<li> <li>