@gov-cy/govcy-frontend-renderer 1.23.0 → 1.24.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.
- package/README.md +22 -2
- package/package.json +1 -1
- package/src/njk/layouts/govcyBase.njk +24 -2
package/README.md
CHANGED
|
@@ -142,7 +142,17 @@ const inputData =
|
|
|
142
142
|
"copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
|
|
143
143
|
"menu" : {"en":"Menu", "el":"Μενου"},
|
|
144
144
|
"title" : {"en":"Service title", "el":"Τιτλός υπηρεσίας"},
|
|
145
|
-
"headerTitle" :
|
|
145
|
+
"headerTitle" :
|
|
146
|
+
{
|
|
147
|
+
"title": {
|
|
148
|
+
"en":"Header title",
|
|
149
|
+
"el":"Τιτλός επικεφαλιδας"
|
|
150
|
+
},
|
|
151
|
+
"href": {
|
|
152
|
+
"en":"/service-id",
|
|
153
|
+
"el":"/service-id"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
146
156
|
"description" : {"en":"Service description", "el":"Περιγραφή υπηρεσίας"},
|
|
147
157
|
"url" : "https://gov.cy",
|
|
148
158
|
"manifest": "/manifest.json",
|
|
@@ -297,7 +307,17 @@ const inputData =
|
|
|
297
307
|
"copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
|
|
298
308
|
"menu" : {"en":"Menu", "el":"Μενου"},
|
|
299
309
|
"title" : {"en":"Service title", "el":"Τιτλός υπηρεσίας"},
|
|
300
|
-
"headerTitle" :
|
|
310
|
+
"headerTitle" :
|
|
311
|
+
{
|
|
312
|
+
"title": {
|
|
313
|
+
"en":"Header title",
|
|
314
|
+
"el":"Τιτλός επικεφαλιδας"
|
|
315
|
+
},
|
|
316
|
+
"href": {
|
|
317
|
+
"en":"/service-id",
|
|
318
|
+
"el":"/service-id"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
301
321
|
"description" : {"en":"Service description", "el":"Περιγραφή υπηρεσίας"},
|
|
302
322
|
"url" : "https://gov.cy",
|
|
303
323
|
"manifest": "manifest.json",
|
package/package.json
CHANGED
|
@@ -79,7 +79,17 @@ To use this template you need to pass the following data:
|
|
|
79
79
|
"copyrightText" : {"en":"Republic of Cyprus, 2025", "el":"Κυπριακή Δημοκρατία, 2025"},
|
|
80
80
|
"menu" : {"en":"Menu", "el":"Μενου"},
|
|
81
81
|
"title" : {"en":"Service title", "el":"Τιτλός υπηρεσίας"},
|
|
82
|
-
"headerTitle" :
|
|
82
|
+
"headerTitle" :
|
|
83
|
+
{
|
|
84
|
+
"title": {
|
|
85
|
+
"en":"Header title",
|
|
86
|
+
"el":"Τιτλός επικεφαλιδας"
|
|
87
|
+
},
|
|
88
|
+
"href": {
|
|
89
|
+
"en":"/service-id",
|
|
90
|
+
"el":"/service-id"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
83
93
|
"description" : {"en":"Service description", "el":"Περιγραφή υπηρεσίας"},
|
|
84
94
|
"isTesting" : true,
|
|
85
95
|
"url": "https://gov.cy",
|
|
@@ -182,7 +192,19 @@ To use this template you need to pass the following data:
|
|
|
182
192
|
<div class="govcy-navigation-container">
|
|
183
193
|
<div class="govcy-service-container">
|
|
184
194
|
<a href="https://gov.cy" class="govcy-logo" title="Go to the gov.cy homepage"><img alt="gov.cy Logo"></a>
|
|
185
|
-
<span class="govcy-service-name">
|
|
195
|
+
<span class="govcy-service-name">
|
|
196
|
+
{%- if site.headerTitle.href -%}
|
|
197
|
+
<a class="govcy-pl-0" href="{{ govcyLocalizeContent(site.headerTitle.href, site.lang, true) }}">
|
|
198
|
+
{%- endif -%}
|
|
199
|
+
{%- if site.headerTitle.title -%}
|
|
200
|
+
{{ govcyLocalizeContent(site.headerTitle.title, site.lang) }}
|
|
201
|
+
{%- else -%}
|
|
202
|
+
{{ govcyLocalizeContent(site.headerTitle, site.lang) }}
|
|
203
|
+
{%- endif -%}
|
|
204
|
+
{%- if site.headerTitle.href -%}
|
|
205
|
+
</a>
|
|
206
|
+
{%- endif -%}
|
|
207
|
+
</span>
|
|
186
208
|
</div>
|
|
187
209
|
{%- if site.languages -%}
|
|
188
210
|
<ul class="govcy-menu-items">
|