govuk_publishing_components 36.0.1 → 36.0.2
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/lib/govuk_publishing_components/presenters/meta_tags.rb +5 -6
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/sortablejs/README.md +2 -2
- data/node_modules/sortablejs/Sortable.js +599 -1028
- data/node_modules/sortablejs/Sortable.min.js +2 -2
- data/node_modules/sortablejs/modular/sortable.complete.esm.js +599 -1028
- data/node_modules/sortablejs/modular/sortable.core.esm.js +599 -1029
- data/node_modules/sortablejs/modular/sortable.esm.js +599 -1028
- data/node_modules/sortablejs/package.json +56 -56
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9964e934f4ce2788b32ae7209b5838a04a44cadbb302c4cf45bd723fd6e9cf38
|
4
|
+
data.tar.gz: 9aa95ca3c117ebef6c201f29990e1b12961b53c435c7904936c44e7b22b53cd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1094205965013e02ab4655bd58fa2e6ac6cfad898ba94275ab93fc3bec5c738fff2fe575e34ac2429e66c912fc54c25afdcf3f878d6090e20ce180bc805e4aa5
|
7
|
+
data.tar.gz: 52f249d3d4edbf8f16d696154c5faf1e751ea386eae9ede15bde6ad248bd705eda6c91b98dfaf4f221c03908b5dd57e9b8ce84eba0c9e85d2078aee907dfe9a8
|
@@ -92,13 +92,12 @@ module GovukPublishingComponents
|
|
92
92
|
def add_ga4_political_tags(meta_tags)
|
93
93
|
government = content_item.dig(:links, :government, 0)
|
94
94
|
|
95
|
-
# political: true/false is in a different place to current: true/false, which is why we have 'details' and 'government
|
95
|
+
# political: true/false is in a different place to current: true/false, which is why we have 'details' and 'government.dig(:details)'
|
96
96
|
if government && details[:political]
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
meta_tags["govuk:ga4-publishing-government"] = government_title
|
97
|
+
current_government = government.dig(:details, :current)
|
98
|
+
unless current_government
|
99
|
+
meta_tags["govuk:ga4-political-status"] = "historic"
|
100
|
+
meta_tags["govuk:ga4-publishing-government"] = government[:title] if government[:title]
|
102
101
|
end
|
103
102
|
end
|
104
103
|
|
@@ -54,12 +54,12 @@ Demo: http://sortablejs.github.io/Sortable/
|
|
54
54
|
|
55
55
|
Install with NPM:
|
56
56
|
```bash
|
57
|
-
|
57
|
+
npm install sortablejs --save
|
58
58
|
```
|
59
59
|
|
60
60
|
Install with Bower:
|
61
61
|
```bash
|
62
|
-
|
62
|
+
bower install --save sortablejs
|
63
63
|
```
|
64
64
|
|
65
65
|
Import into your project:
|