Skip to content

Commit

Permalink
Export accent color
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vimpostor committed Jan 8, 2024
1 parent 0594e3f commit bc6d56c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
{% endif -%}
{% endif %}

<meta name="theme-color" content="#FF8F00">

{# RSS #}
<link rel="alternate" type="application/atom+xml" title="{{ config.title }}" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">

Expand Down

0 comments on commit bc6d56c

Please sign in to comment.