jekyll-theme-consulting 0.10.6 → 0.10.11
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/_includes/contact_client_script.html +3 -3
- data/_layouts/contact.html +10 -10
- data/_layouts/landing.html +5 -40
- data/_sass/libs/_vars.scss +1 -1
- data/_sass/main/layout/_sidebar.scss +1 -1
- 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: 25d552050b2d05762db8ecf58d509d65da879cf89b85570ae5644cd05d6c538f
|
4
|
+
data.tar.gz: b36f8c7b30c1bdd552d4f3832380cf03248ae00b08749dc3da2819edbe2a2c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a8b8dfb1af347c02956982e9f191724344cba838369ab9626896a4aca2c8162e82bdd137e72e0605a7b22ef339783765d51f89d96d486f24fe77b65d50cde9
|
7
|
+
data.tar.gz: 30bd53bd2a3a2daed2bd7a1b58599ca91404bfefa1a751d2277bbe7e2a8c34f3b032b72c54de5aae430061704b8afe419b8aa54260036ae47a8a9008fc7c19ab
|
@@ -55,9 +55,9 @@
|
|
55
55
|
|
56
56
|
const sendContactMessage = function() {
|
57
57
|
const formData = new FormData();
|
58
|
-
formData.append('name',
|
59
|
-
formData.append('email',
|
60
|
-
formData.append('message',
|
58
|
+
formData.append('name', encodeURI(nameInputElement.value));
|
59
|
+
formData.append('email', encodeURI(emailInputElement.value));
|
60
|
+
formData.append('message', encodeURI(messageInputElement.value));
|
61
61
|
formData.append('token', grecaptcha.getResponse(recaptchaWidget));
|
62
62
|
|
63
63
|
fetch("{{ '/contact.php' | absolute_url }}", {
|
data/_layouts/contact.html
CHANGED
@@ -11,15 +11,15 @@ $contact_name = $contact_email = $contact_message = $token = $contact_ip = "";
|
|
11
11
|
|
12
12
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
13
13
|
if (has_required_data($_POST)) {
|
14
|
-
$contact_name = filter_var(
|
14
|
+
$contact_name = urldecode(filter_var(
|
15
15
|
$_POST["name"],
|
16
|
-
FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
17
|
-
$contact_email = filter_var(
|
16
|
+
FILTER_SANITIZE_FULL_SPECIAL_CHARS));
|
17
|
+
$contact_email = urldecode(filter_var(
|
18
18
|
$_POST["email"],
|
19
|
-
FILTER_SANITIZE_EMAIL);
|
20
|
-
$contact_message = filter_var(
|
19
|
+
FILTER_SANITIZE_EMAIL));
|
20
|
+
$contact_message = urldecode(filter_var(
|
21
21
|
$_POST["message"],
|
22
|
-
FILTER_SANITIZE_FULL_SPECIAL_CHARS);
|
22
|
+
FILTER_SANITIZE_FULL_SPECIAL_CHARS));
|
23
23
|
$token = filter_var(
|
24
24
|
$_POST["token"],
|
25
25
|
FILTER_SANITIZE_URL);
|
@@ -74,10 +74,10 @@ function send_mail ($name, $email, $message, $ip) {
|
|
74
74
|
"{{ page.mail.subject | default: 'Contact request' }}",
|
75
75
|
(
|
76
76
|
"{{ page.mail.intro | default: mail-intro }}<br>\r\n"
|
77
|
-
."Ip: ".$ip."<br>\r\n"
|
78
|
-
."Name: ".$name."<br>\r\n"
|
79
|
-
."Email: ".$email."<br>\r\n"
|
80
|
-
."Message: ".$message."<br>\r\n"),
|
77
|
+
."Ip: ".$ip."<br><br>\r\n"
|
78
|
+
."Name: ".$name."<br><br>\r\n"
|
79
|
+
."Email: ".$email."<br><br>\r\n"
|
80
|
+
."Message: ".$message."<br><br>\r\n"),
|
81
81
|
(
|
82
82
|
"From: ".$name
|
83
83
|
." <".$email.">\r\n"
|
data/_layouts/landing.html
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
---
|
3
3
|
{%- assign lang = page.lang | default: site.lang | default: 'en' -%}
|
4
4
|
{%- assign menu = site.data.menus[page.menu][lang] -%}
|
5
|
-
{%- assign header = page.header | default: site.header -%}
|
6
5
|
{%- assign title = page.title | default: site.title -%}
|
7
6
|
{%- assign description = page.description | default: site.description -%}
|
8
7
|
{%- assign stylesheets = page.stylesheets | default: site.stylesheets -%}
|
@@ -14,47 +13,13 @@
|
|
14
13
|
Free for personal and commercial use under the CCA 4.0 license
|
15
14
|
-->
|
16
15
|
<html lang="{{ lang }}">
|
17
|
-
|
18
|
-
{% include head.html title=title subtitle=subtitle %}
|
19
|
-
|
16
|
+
{% include head.html title=title description=description stylesheets=stylesheets %}
|
20
17
|
<body>
|
21
|
-
|
22
|
-
|
23
|
-
.
|
24
|
-
fill: rgba(10,100,130,0.4);
|
25
|
-
}
|
26
|
-
.lower-half svg {
|
27
|
-
fill: rgba(130,0,130,0.4);
|
28
|
-
}
|
29
|
-
</style>
|
30
|
-
|
31
|
-
<!-- Wrapper -->
|
32
|
-
<div id="wrapper">
|
33
|
-
|
34
|
-
<div class="upper-half" style="position: fixed; z-index: 2; top:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
35
|
-
{% include waves/top.html ys=80 ye=20 x1=40 y1=80 x2=60 y2=20 cx=50 cy=50 r=4 %}
|
36
|
-
</div>
|
37
|
-
|
38
|
-
<div class="upper-half" style="position: fixed; z-index: 4; top:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
39
|
-
{% include waves/top.html ys=70 ye=30 x1=20 y1=90 x2=40 y2=20 cx=10 cy=76 r=2%}
|
40
|
-
</div>
|
41
|
-
|
42
|
-
<div class="upper-half" style="position: fixed; z-index: 4; top:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
43
|
-
{% include waves/top.html ys=65 ye=35 x1=15 y1=85 x2=35 y2=20 cx=10 cy=76 r=2%}
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div class="lower-half" style="position: fixed; z-index: 3; bottom:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
47
|
-
{% include waves/bottom.html ys=80 ye=20 x1=40 y1=80 x2=60 y2=20 cx=50 cy=50 r=4 %}
|
48
|
-
</div>
|
49
|
-
|
50
|
-
<div class="upper-half" style="position: fixed; z-index: 1; bottom:0; left: 0; width: 100vw; height: 100vh; display: flex; flex-direction: column;">
|
51
|
-
{% include waves/bottom.html ys=60 ye=80 x1=20 y1=80 x2=60 y2=100 cx=80 cy=88 r=2 %}
|
52
|
-
</div>
|
53
|
-
|
18
|
+
<div>
|
19
|
+
{{ content }}
|
20
|
+
{% include sidebar.html menu=menu %}
|
54
21
|
</div>
|
55
|
-
|
56
22
|
{% include footer.html %}
|
57
|
-
|
23
|
+
{% include scripts.html scripts=scripts %}
|
58
24
|
</body>
|
59
|
-
|
60
25
|
</html>
|
data/_sass/libs/_vars.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-consulting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moodule
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|