jekyll-nagymaros 3.1.0 → 3.2.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.
@@ -0,0 +1,60 @@
1
+ ---
2
+ ---
3
+
4
+ {% assign center = site.data.map.center | default: '47.788542883494856, 18.961139141737842' %}
5
+ {% assign zoom = site.data.map.zoom | default: 13 %}
6
+
7
+ var map = L.map("map").setView([{{ center }}], {{ zoom }});
8
+
9
+ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
10
+
11
+ {% if site.data.map.markers %}
12
+ {% for marker in site.data.map.markers %}
13
+ {% assign content = false %}
14
+ {% if marker.title %}
15
+ {% assign content = marker.title | prepend: '<strong>' | append: '</strong>' %}
16
+ {% endif %}
17
+ {% for line in marker.text %}
18
+ {% if content %}
19
+ {% assign content = content | append: '<br>' | append: line %}
20
+ {% else %}
21
+ {% assign content = line %}
22
+ {% endif %}
23
+ {% endfor %}
24
+ L.marker([{{ marker.latlng }}])
25
+ {% if content %}
26
+ .addTo(map)
27
+ .bindTooltip("{{ content }}");
28
+ {% else %}
29
+ .addTo(map);
30
+ {% endif %}
31
+ {% endfor %}
32
+ {% endif %}
33
+
34
+ {% if site.data.map.polygons %}
35
+ {% for polygon in site.data.map.polygons %}
36
+ {% assign latlng = polygon.latlng | join: '],[' | prepend: '[' | append: ']' %}
37
+ {% assign color = polygon.color | default: '#ff6b6b' %}
38
+ {% assign offset = polygon.offset | default: '0, 0' %}
39
+ {% assign x = offset | split: ', ' | first %}
40
+ {% assign y = offset | split: ', ' | last %}
41
+ {% assign content = false %}
42
+ {% if polygon.title %}
43
+ {% assign content = polygon.title | prepend: '<strong>' | append: '</strong>' %}
44
+ {% endif %}
45
+ {% for line in polygon.text %}
46
+ {% if content %}
47
+ {% assign content = content | append: '<br>' | append: line %}
48
+ {% else %}
49
+ {% assign content = line %}
50
+ {% endif %}
51
+ {% endfor %}
52
+ L.polygon([{{ latlng }}], {color: '{{ color }}'})
53
+ {% if content %}
54
+ .addTo(map)
55
+ .bindTooltip("{{ content }}", {direction: 'center', offset: L.point({x: {{ x }}, y: {{ y }}})});
56
+ {% else %}
57
+ .addTo(map);
58
+ {% endif %}
59
+ {% endfor %}
60
+ {% endif %}
data/assets/js/main.js CHANGED
@@ -1,60 +0,0 @@
1
- ---
2
- ---
3
-
4
- {% assign center = site.data.map.center | default: '47.788542883494856, 18.961139141737842' %}
5
- {% assign zoom = site.data.map.zoom | default: 13 %}
6
-
7
- var map = L.map("map").setView([{{ center }}], {{ zoom }});
8
-
9
- L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
10
-
11
- {% if site.data.map.markers %}
12
- {% for marker in site.data.map.markers %}
13
- {% assign content = false %}
14
- {% if marker.title %}
15
- {% assign content = marker.title | prepend: '<strong>' | append: '</strong>' %}
16
- {% endif %}
17
- {% for line in marker.text %}
18
- {% if content %}
19
- {% assign content = content | append: '<br>' | append: line %}
20
- {% else %}
21
- {% assign content = line %}
22
- {% endif %}
23
- {% endfor %}
24
- L.marker([{{ marker.latlng }}])
25
- {% if content %}
26
- .addTo(map)
27
- .bindTooltip("{{ content }}");
28
- {% else %}
29
- .addTo(map);
30
- {% endif %}
31
- {% endfor %}
32
- {% endif %}
33
-
34
- {% if site.data.map.polygons %}
35
- {% for polygon in site.data.map.polygons %}
36
- {% assign latlng = polygon.latlng | join: '],[' | prepend: '[' | append: ']' %}
37
- {% assign color = polygon.color | default: '#ff6b6b' %}
38
- {% assign offset = polygon.offset | default: '0, 0' %}
39
- {% assign x = offset | split: ', ' | first %}
40
- {% assign y = offset | split: ', ' | last %}
41
- {% assign content = false %}
42
- {% if polygon.title %}
43
- {% assign content = polygon.title | prepend: '<strong>' | append: '</strong>' %}
44
- {% endif %}
45
- {% for line in polygon.text %}
46
- {% if content %}
47
- {% assign content = content | append: '<br>' | append: line %}
48
- {% else %}
49
- {% assign content = line %}
50
- {% endif %}
51
- {% endfor %}
52
- L.polygon([{{ latlng }}], {color: '{{ color }}'})
53
- {% if content %}
54
- .addTo(map)
55
- .bindTooltip("{{ content }}", {direction: 'center', offset: L.point({x: {{ x }}, y: {{ y }}})});
56
- {% else %}
57
- .addTo(map);
58
- {% endif %}
59
- {% endfor %}
60
- {% endif %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-nagymaros
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - piazzai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-07 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages
@@ -16,34 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '231'
19
+ version: '232'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '231'
27
- - !ruby/object:Gem::Dependency
28
- name: webrick
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.8'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 1.8.1
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '1.8'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 1.8.1
26
+ version: '232'
47
27
  description:
48
28
  email:
49
29
  - 42124135+piazzai@users.noreply.github.com
@@ -106,7 +86,8 @@ files:
106
86
  - assets/img/marker-icon-2x.png
107
87
  - assets/img/marker-icon.png
108
88
  - assets/img/marker-shadow.png
109
- - assets/js/bootstrap.js
89
+ - assets/js/bootstrap.bundle.js
90
+ - assets/js/leaflet-data.js
110
91
  - assets/js/leaflet.js
111
92
  - assets/js/main.js
112
93
  homepage: https://github.com/piazzai/jekyll-nagymaros