-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmap.kml
27 lines (27 loc) · 980 Bytes
/
map.kml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
<name>{{ site.title }}</name>
<description>
This map contains a list of locations where I wrote an article on this blog.
</description>
<Folder>
<name>Posts</name>
{% for post in site.posts %}{% if post.geo %}
<Placemark>
<name>{{ post.title | xml_escape }}</name>
<Point>
<coordinates>
{{ post.geo[1] }}{{ post.date | date: '%s' | modulo: 1000 }},{{ post.geo[0] }}{{post.date | date: '%s' | divide: 10 | modulo: 1000 }},0
</coordinates>
</Point>
<description>https://evertpot.com{{post.url}} - {{ post.date | date: "%B %d, %Y" }}</description>
<atom:link type="text/html" rel="alternate" href="https://evertpot.com{{ post.url }}"/>
</Placemark>
{% endif %}{% endfor %}
</Folder>
</Document>
</kml>