From 35d94aacdf579e7918ae928bc1dc83196cb38221 Mon Sep 17 00:00:00 2001 From: daudix Date: Sat, 19 Apr 2025 21:15:21 +0300 Subject: [PATCH 1/2] Ask user to set global site title if none is set (fixes #129) --- templates/partials/title.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/partials/title.html b/templates/partials/title.html index 8d8897f..c951c98 100644 --- a/templates/partials/title.html +++ b/templates/partials/title.html @@ -1,7 +1,11 @@ {# Taken from https://github.com/welpo/tabi/blob/69713c973c11d7646c8fe56476261d96cc1978d8/templates/partials/title.html #} {#- Setup -#} -{%- set suffix = config.title | safe -%} +{%- if config.title -%} + {%- set suffix = config.title | safe -%} +{%- else -%} + {{- throw(message='Title has not been set in config.toml, Please set one.') -}} +{%- endif -%} {%- set custom_separator = config.extra.title_separator | default(value="-") -%} {%- set separator = " " ~ custom_separator ~ " " -%} From 7157ea479d9c20b7a95a3645a6689ccb9ebffa29 Mon Sep 17 00:00:00 2001 From: daudix Date: Sat, 19 Apr 2025 21:19:17 +0300 Subject: [PATCH 2/2] Bump to v6.3.0 --- CHANGELOG.md | 12 +++++++++++- content/_index.md | 4 ++-- sass/style.scss | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8bb651..cb09f38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,17 @@ 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.1...main) +## [Unreleased](https://codeberg.org/daudix/duckquill/compare/v6.3.0...main) + +## [v6.3.0](https://codeberg.org/daudix/duckquill/compare/v6.2.0...v6.3.0) - 2025-04-19 + +### Added + +- Add German translation (#130). + +### Fixed + +- Output an error message if title is not set in `config.toml` (#129). ## [v6.2.0](https://codeberg.org/daudix/duckquill/compare/v6.1.1...v6.2.0) - 2025-03-30 diff --git a/content/_index.md b/content/_index.md index 8a701af..cb5a83d 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.2.0 +git checkout tags/v6.3.0 ``` 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.2.0 +git checkout tags/v6.3.0 ``` {% alert(important=true) %} diff --git a/sass/style.scss b/sass/style.scss index 88dd959..6a51d44 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -1,5 +1,5 @@ /*! - * Duckquill v6.2.0 (https://duckquill.daudix.one) + * Duckquill v6.3.0 (https://duckquill.daudix.one) * Copyright 2024-2025 David "Daudix" Lapshin * Licensed under MIT (https://codeberg.org/daudix/duckquill/src/branch/main/LICENSE) */