Skip to content

Commit

Permalink
Allow icons to be omitted by setting false
Browse files Browse the repository at this point in the history
If you don't want to use the default GOVUK icons but don't want to create your own, you should be able to turn them off by setting them to `false`.
  • Loading branch information
frankieroberto authored and paulrobertlloyd committed Dec 27, 2024
1 parent b5dd281 commit a2fa935
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
{% from "components/prose-scope/macro.njk" import appProseScope %}

{% block headIcons %}
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{ options.icons.shortcut }}" type="image/x-icon">
<link rel="mask-icon" href="{{ options.icons.mask }}" color="{{ themeColor }}">
<link rel="apple-touch-icon" href="{{ options.icons.touch }}">
{%- if options.icons.shortcut %}<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="{{ options.icons.shortcut }}" type="image/x-icon">{% endif %}
{%- if options.icons.mask %}<link rel="mask-icon" href="{{ options.icons.mask }}" color="{{ themeColor }}">{% endif %}
{%- if options.icons.touch %}<link rel="apple-touch-icon" href="{{ options.icons.touch }}">{% endif %}
{% endblock %}

{% block head %}
Expand Down

0 comments on commit a2fa935

Please sign in to comment.