swedbank-pay-design-guide-jekyll-theme 2.7.8 → 2.8.1
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/_layouts/default.html +56 -49
- data/assets/js/cookie-consent.js +50 -0
- data/lib/gem_version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0a8016ef43331a548ba4a8cc985b0788d2d4814c9ca8207e2309a2c3757d7c5
|
|
4
|
+
data.tar.gz: b4ede1bff762c593b966430884a83973936e07e5831f6729a6f78c70254af824
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fc5f863d71f7483659380ea5f366d9dcea1f9f742833b72340064c2f0ce4158090ea7220f1c30bb5dd61abb273a9a3cddd57022420711cd77c21cf2807f1cc1
|
|
7
|
+
data.tar.gz: e9bc7565916cc415bd2b3b490a083480690b275e21992547b18758231971f43d7ca2b7aa211093afcaad1a4987aac4e9f949a4edfb0ecc2330d9976f78616786
|
data/_layouts/default.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{%- assign lead_title = page.lead_title -%}
|
|
2
2
|
{%- if lead_title == nil and page.sidebar.navigation == nil -%}
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
{%- unless page.name contains "index" -%}
|
|
4
|
+
{%- assign dirname = page.dir | split: "/" | last | remove: "/" | capitalize -%}
|
|
5
|
+
{%- unless dirname == "" -%}
|
|
6
|
+
{%- assign lead_title = dirname -%}
|
|
7
|
+
{%- endunless -%}
|
|
8
|
+
{%- endunless -%}
|
|
9
9
|
{%- endif -%}
|
|
10
10
|
{%- assign main_title = page.main_title | default: page.title | default: "PayEx Design Guide theme for Jekyll" -%}
|
|
11
11
|
{%- capture title -%}{%- if lead_title != nil -%}{{ lead_title }} – {% endif %}{{ main_title }}{%- endcapture -%}
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
{%- assign design_guide_version = site.design_guide.version | default: '7.1.0' -%}
|
|
16
16
|
{%- assign design_guide_url = design_guide_base_url | append: '/v/' | append: design_guide_version -%}
|
|
17
17
|
<!DOCTYPE html>
|
|
18
|
-
<html lang="{{ site.lang | default: "en-US" }}">
|
|
18
|
+
<html lang="{{ site.lang | default: " en-US" }}">
|
|
19
|
+
|
|
19
20
|
<head>
|
|
20
21
|
<meta charset="utf-8" />
|
|
21
22
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
<meta property="og:type" value="website" />
|
|
31
32
|
{%- if page.url != nil %}
|
|
32
33
|
<meta property="og:url" value="{{ page.url | absolute_url }}" />
|
|
33
|
-
{%- if page.url contains 'old-implementations' %}
|
|
34
|
+
{%- if page.url contains 'old-implementations' %}
|
|
35
|
+
<meta name="robots" content="noindex">{% endif %}
|
|
34
36
|
{% endif %}
|
|
35
37
|
<meta property="og:title" value="{{ title }}" />
|
|
36
38
|
<meta name="title" content="{{ title }}" />
|
|
@@ -42,19 +44,24 @@
|
|
|
42
44
|
<title>{{ title }}</title>
|
|
43
45
|
<link rel="stylesheet" href="{{ design_guide_url }}/styles/swedbankpay.css" />
|
|
44
46
|
<link rel="stylesheet" href="{{ design_guide_url }}/styles/documentation-swedbankpay.css" />
|
|
45
|
-
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
|
46
|
-
<link rel="stylesheet" href="{{ "/assets/css/pygments-autumn.css" | relative_url }}">
|
|
47
|
+
<link rel="stylesheet" href="{{ " /assets/css/style.css" | relative_url }}">
|
|
48
|
+
<link rel="stylesheet" href="{{ " /assets/css/pygments-autumn.css" | relative_url }}">
|
|
47
49
|
<link rel="shortcut icon" href="{{ design_guide_url }}/icons/favicon.ico">
|
|
48
50
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ design_guide_url }}/icons/favicon-16x16.png">
|
|
49
51
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ design_guide_url }}/icons/favicon-32x32.png">
|
|
50
52
|
<link href="https://fonts.googleapis.com/css?family=Material+Icons+Outlined" rel="stylesheet">
|
|
53
|
+
{% if site.custom_head_scripts %}
|
|
54
|
+
{% for script in site.custom_head_scripts %}
|
|
55
|
+
<script src="{{ script | relative_url }}"></script>
|
|
56
|
+
{% endfor %}
|
|
57
|
+
{% endif %}
|
|
51
58
|
{%- include apple-mobile-headers.html design_guide_url=design_guide_url -%}
|
|
52
59
|
<script src="{{ '/assets/js/mermaid.min.js' | relative_url }}"></script>
|
|
53
60
|
{%- if site.search.enabled == true %}
|
|
54
61
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
55
|
-
<script src="{{ "/assets/tipuesearch/tipuesearch_content.js" | relative_url }}"></script>
|
|
56
|
-
<script src="{{ "/assets/tipuesearch/tipuesearch_set.js" | relative_url }}"></script>
|
|
57
|
-
<script src="{{ "/assets/tipuesearch/tipuesearch.min.js" | relative_url }}"></script>
|
|
62
|
+
<script src="{{ " /assets/tipuesearch/tipuesearch_content.js" | relative_url }}"></script>
|
|
63
|
+
<script src="{{ " /assets/tipuesearch/tipuesearch_set.js" | relative_url }}"></script>
|
|
64
|
+
<script src="{{ " /assets/tipuesearch/tipuesearch.min.js" | relative_url }}"></script>
|
|
58
65
|
{%- endif %}
|
|
59
66
|
</head>
|
|
60
67
|
|
|
@@ -62,60 +69,60 @@
|
|
|
62
69
|
<div id="overlay"></div>
|
|
63
70
|
<div id="designguide">
|
|
64
71
|
<header id="dg-topbar" class="topbar topbar-max-md-sticky d-md-flex d-lg-none">
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
<button type="button" class="topbar-btn" aria-label="Open menu" aria-haspopup="menu"
|
|
73
|
+
aria-expanded="false" aria-controls="topbar-nav">
|
|
74
|
+
<i class="material-icons topbar-btn-icon">menu</i>
|
|
75
|
+
</button><button type="button" class="topbar-close" aria-label="Close menu">
|
|
76
|
+
<i class="material-icons topbar-btn-icon">close</i>
|
|
77
|
+
</button>
|
|
78
|
+
<a class="topbar-logo" href="/" aria-label="To homepage">
|
|
79
|
+
<img src="{{ design_guide_url }}/designguide/assets/swedbankpay-logo-v.svg" alt="swedbankpay logo"
|
|
80
|
+
class="logotype-vertical logotype-sm" />
|
|
81
|
+
</a>
|
|
73
82
|
</header>
|
|
74
83
|
<div class="documentation">
|
|
75
84
|
<div id="search-box-container" class="form-group search-box search-expander">
|
|
76
85
|
{% if site.search.enabled == true and page.name != "search.md" %}
|
|
77
|
-
<form class="search d-flex"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
placeholder="Search in documentation"
|
|
82
|
-
onfocus="this.placeholder=''"
|
|
83
|
-
onblur="this.placeholder='Search in documentation'"
|
|
84
|
-
pattern=".{3,}"
|
|
86
|
+
<form class="search d-flex" method="get" action="{{ site.search.url | relative_url }}">
|
|
87
|
+
<input name="q" type="text" id="tipue_search_input" class="form-control search-input"
|
|
88
|
+
placeholder="Search in documentation" onfocus="this.placeholder=''"
|
|
89
|
+
onblur="this.placeholder='Search in documentation'" pattern=".{3,}"
|
|
85
90
|
title="At least 3 characters">
|
|
86
|
-
<button id="search-btn"class="btn btn-primary btn-icon-lg" type="submit"
|
|
91
|
+
<button id="search-btn" class="btn btn-primary btn-icon-lg" type="submit"
|
|
92
|
+
aria-label="Search button">
|
|
87
93
|
<i class="material-icons-outlined" aria-hidden="true">search</i>
|
|
88
94
|
</button>
|
|
89
95
|
</form>
|
|
90
96
|
{% endif %}
|
|
91
97
|
</div>
|
|
92
98
|
<div class="d-md-flex">
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
alt="Swedbank Pay vertical logo" class="logotype-vertical logotype-lg"/>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
<div id="dg-sidebar" class="sidebar dg-sidebar has-secondary-nav">
|
|
100
|
+
<nav class="sidebar-main-nav">
|
|
101
|
+
<div class="sidebar-logo">
|
|
102
|
+
<a href="/" class="sidebar-header">
|
|
103
|
+
<img src="{{ design_guide_url }}/designguide/assets/swedbankpay-logo-v.svg"
|
|
104
|
+
alt="Swedbank Pay vertical logo" class="logotype-vertical logotype-lg" />
|
|
105
|
+
</a>
|
|
106
|
+
</div>
|
|
107
|
+
<ul id="dx-sidebar-main-nav-ul" class="main-nav-ul">
|
|
108
|
+
</ul>
|
|
109
|
+
</nav>
|
|
110
|
+
</div>
|
|
111
|
+
<main class="doc-view">
|
|
112
|
+
{% if page.layout != 'front-page' %}
|
|
107
113
|
{% include title-header.html %}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
{% endif %}
|
|
115
|
+
{% include doc-container.html %}
|
|
116
|
+
</main>
|
|
111
117
|
</div>
|
|
112
118
|
</div>
|
|
113
119
|
</div>
|
|
114
120
|
<script src="{{ design_guide_url }}/scripts/dg.js" global="true" autoload="true"></script>
|
|
115
121
|
<script src="{{ '/assets/js/swedbank-pay-design-guide-theme.js' | relative_url }}"></script>
|
|
122
|
+
<script src="{{ '/assets/js/cookie-consent.js' | relative_url }}"></script>
|
|
116
123
|
{%- if site.google_analytics.tracking_id %}
|
|
117
|
-
|
|
124
|
+
{% include google_analytics.html %}
|
|
118
125
|
{%- endif %}
|
|
119
126
|
</body>
|
|
120
127
|
|
|
121
|
-
</html>
|
|
128
|
+
</html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Ensure DOM is ready before manipulating it
|
|
2
|
+
if (document.readyState === 'loading') {
|
|
3
|
+
document.addEventListener('DOMContentLoaded', initCookieConsent);
|
|
4
|
+
} else {
|
|
5
|
+
initCookieConsent();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function initCookieConsent() {
|
|
9
|
+
if (location.host === "developer.swedbankpay.com") {
|
|
10
|
+
var script = document.createElement('script');
|
|
11
|
+
script.src = 'https://cdn.consentmanager.net/delivery/js/semiautomatic.min.js';
|
|
12
|
+
script.type = "text/javascript";
|
|
13
|
+
script.setAttribute("data-cmp-ab", "1");
|
|
14
|
+
script.setAttribute("data-cmp-host", "d.delivery.consentmanager.net");
|
|
15
|
+
script.setAttribute("data-cmp-cdn", "cdn.consentmanager.net");
|
|
16
|
+
script.setAttribute("data-cmp-cdid", "4da9d0f9328c3");
|
|
17
|
+
script.setAttribute("data-cmp-codesrc", "0");
|
|
18
|
+
document.body.appendChild(script);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Clarity script - do not change
|
|
23
|
+
(function (c, l, a, r, i, t, y) {
|
|
24
|
+
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
|
|
25
|
+
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
|
|
26
|
+
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
|
|
27
|
+
})(window, document, "clarity", "script", "jd3awxna38");
|
|
28
|
+
// End of Clarity script
|
|
29
|
+
|
|
30
|
+
function updateConsent(e, o) {
|
|
31
|
+
var clarityVendorId = "s2631";
|
|
32
|
+
var result = __cmp('getCMPData');
|
|
33
|
+
if ("vendorConsents" in result) {
|
|
34
|
+
if (clarityVendorId in result.vendorConsents && result.vendorConsents[clarityVendorId]) {
|
|
35
|
+
window.clarity("consentv2", { analytics_Storage: "granted" });
|
|
36
|
+
} else {
|
|
37
|
+
window.clarity("consentv2", { analytics_Storage: "denied" });
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function initCMP() {
|
|
43
|
+
if (typeof __cmp !== 'undefined') {
|
|
44
|
+
__cmp("addEventListener", ["consent", updateConsent, false], null);
|
|
45
|
+
} else {
|
|
46
|
+
setTimeout(initCMP, 100);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
initCMP();
|
data/lib/gem_version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swedbank-pay-design-guide-jekyll-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Swedbank Pay
|
|
@@ -462,6 +462,7 @@ files:
|
|
|
462
462
|
- assets/img/flag-dk.svg
|
|
463
463
|
- assets/img/flag-no.svg
|
|
464
464
|
- assets/img/flag-se.svg
|
|
465
|
+
- assets/js/cookie-consent.js
|
|
465
466
|
- assets/js/mermaid.min.js
|
|
466
467
|
- assets/js/swedbank-pay-design-guide-theme.js
|
|
467
468
|
- assets/puml-theme-swedbankpay.puml
|