mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
rename to enable_subset for consistency
This commit is contained in:
parent
44d12d84f2
commit
7300f91fb0
4 changed files with 5 additions and 5 deletions
|
@ -339,7 +339,7 @@ enable_csp = true
|
|||
# This avoids a flashing text issue in Firefox.
|
||||
# Please see https://welpo.github.io/tabi/blog/custom-font-subset/ to learn how to create this file.
|
||||
custom_subset = true
|
||||
subset_enabled = true
|
||||
enable_subset = true
|
||||
|
||||
[extra.analytics]
|
||||
# Specify which analytics service you want to use.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
+++
|
||||
title = "Mastering tabi Settings: A Comprehensive Guide"
|
||||
date = 2023-09-18
|
||||
updated = 2025-01-02
|
||||
updated = 2025-01-12
|
||||
description = "Discover the many ways you can customise your tabi site."
|
||||
|
||||
[taxonomies]
|
||||
|
@ -722,7 +722,7 @@ See the [Mermaid documentation](@/blog/shortcodes/index.md#mermaid-diagrams) for
|
|||
|
||||
Custom fonts cause flashing text in Firefox. To amend this, tabi loads a subset of glyphs for the header. Since this (slightly) increases the initial load time, it's a good idea to try and minimise the size of this subset, or disable it completely if you're not using a custom font in your skin.
|
||||
|
||||
You can create a custom subset tailored to your site, save it as `static/custom_subset.css`, and have it load with `custom_subset = true`. Disabling the subset can be done with `subset_enabled = false`.
|
||||
You can create a custom subset tailored to your site, save it as `static/custom_subset.css`, and have it load with `custom_subset = true`. Disabling the subset can be done with `enable_subset = false`.
|
||||
|
||||
For more information, including instructions on how to create a custom subset, see the [docs](@/blog/custom-font-subset/index.md).
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
{# CSS #}
|
||||
{# Load subset of glyphs for header. Avoids flashing issue in Firefox #}
|
||||
{% if config.extra.subset_enabled %}
|
||||
{% if config.extra.enable_subset %}
|
||||
{% if config.extra.custom_subset == true %}
|
||||
<link rel="stylesheet" href="{{ get_url(path="custom_subset.css" , cachebust=true) }}">
|
||||
{% elif lang == 'en' %}
|
||||
|
|
|
@ -296,7 +296,7 @@ enable_csp = true
|
|||
# This avoids a flashing text issue in Firefox.
|
||||
# Please see https://welpo.github.io/tabi/blog/custom-font-subset/ to learn how to create this file.
|
||||
# custom_subset = true
|
||||
subset_enabled = true
|
||||
enable_subset = true
|
||||
|
||||
[extra.analytics]
|
||||
# Specify which analytics service you want to use.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue