Skip to content

Commit bc6d56c

Browse files
committed
Export accent color
Some browsers (e.g. Chromium on Android) make use of the theme color to highlight the tab bar in a different color. For now we hardcode the same accent color as "--primary-color" in the CSS files. In the future we should allow the consumer to configure the accent color in the configuration file and get the value from there. Unfortunately this is not possible at the moment, because zola is missing support for CSS templating, but an implementation is already in the pipeline [0], so with some luck we might soon be able to unify the accent color retrieval. [0] getzola/zola#2242
1 parent 0594e3f commit bc6d56c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/partials/header.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
{% endif -%}
3232
{% endif %}
3333

34+
<meta name="theme-color" content="#FF8F00">
35+
3436
{# RSS #}
3537
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
3638

0 commit comments

Comments
 (0)