govuk_tech_docs 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/govuk_tech_docs/version.rb +1 -1
- data/lib/source/layouts/core.erb +18 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa9aa9b04c96475883c6eefccd842c4514442cd2e86211eaf11d702174fe00bc
|
4
|
+
data.tar.gz: 310b586532f7f0be04d6f80565f83da9160004ccda9dd5091f28fde7cf756d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a5a5bc7b42ed7535e942797d3fe30d79bd292fe77639828f395d71e41bf0c39362de6ba3d5fabdf2f8e67a2784b31282267718060a733a397ee987453690f8e
|
7
|
+
data.tar.gz: fd60adb788a6cec93b734c664a61b5e9e69234559823b509936390453135d9e10a08107eec645f7b6dd93d14bf06e26bc8892b00d26560b182a4b0840bbbf807
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 4.4.0
|
2
|
+
|
3
|
+
### New features
|
4
|
+
|
5
|
+
- [Use the service link as the start of the path to the favicon images if required](https://github.com/alphagov/tech-docs-gem/pull/399)
|
6
|
+
|
7
|
+
To use the service_link at the start of the path to the favicon images, you need to
|
8
|
+
- set `use_service_link_for_favicon: true`
|
9
|
+
|
1
10
|
## 4.3.1
|
2
11
|
|
3
12
|
- Revert [Fix: Use the service link as the start of the path to the favicon images](https://github.com/alphagov/tech-docs-gem/pull/391)
|
data/lib/source/layouts/core.erb
CHANGED
@@ -11,11 +11,24 @@
|
|
11
11
|
|
12
12
|
<link rel="canonical" href="<%= meta_tags.canonical_url %>">
|
13
13
|
<% if config[:tech_docs][:show_govuk_logo] %>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
<%
|
15
|
+
path_prefix =
|
16
|
+
if !development? && config[:tech_docs][:use_service_link_for_favicon]
|
17
|
+
service_link = config[:tech_docs][:service_link] || '/'
|
18
|
+
# ensure service_link ends with a trailing '/'
|
19
|
+
if service_link[-1, 1] != '/'
|
20
|
+
service_link += '/'
|
21
|
+
end
|
22
|
+
service_link
|
23
|
+
else
|
24
|
+
'/'
|
25
|
+
end
|
26
|
+
%>
|
27
|
+
<link rel="icon" sizes="48x48" href="<%= path_prefix %>assets/govuk/assets/images/favicon.ico">
|
28
|
+
<link rel="icon" sizes="any" href="<%= path_prefix %>assets/govuk/assets/images/favicon.svg" type="image/svg+xml">
|
29
|
+
<link rel="mask-icon" href="<%= path_prefix %>assets/govuk/assets/images/govuk-icon-mask.svg" color="#0b0c0c">
|
30
|
+
<link rel="apple-touch-icon" href="<%= path_prefix %>assets/govuk/assets/images/govuk-icon-180.png">
|
31
|
+
<link rel="manifest" href="<%= path_prefix %>assets/govuk/assets/manifest.json">
|
19
32
|
<% else %>
|
20
33
|
<link rel="icon" sizes="48x48" href="/images/favicon.ico">
|
21
34
|
<link rel="icon" sizes="any" href="/images/favicon.svg" type="image/svg+xml">
|