Skip to content

Commit

Permalink
Merge pull request #78 from World-Wide-JUGs/feature/added-mastodon-li…
Browse files Browse the repository at this point in the history
…nk-in-map-and-open-links-in-a-new-window

Added mastodon link in map + open links in a new tab
  • Loading branch information
cesarhernandezgt committed Sep 14, 2023
2 parents 24d8959 + 873f3d8 commit a363d07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<li>
<article><p>
<h2>{{ jug.name }}</h2>
Location: {{ jug.location }}<br/>
Date founded: {{ jug.founded_date }}<br/>
Country: {{ jug.country }}<br/>
{% if jug.website %}
Expand Down
7 changes: 5 additions & 2 deletions map.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@
{% assign longitude = coordinates[0] %}
{% assign latitude = coordinates[1] %}
var popup = "<b>{{ jug.name }}</b><br/>" +
"<a href='{{ jug.website }}'>Website</a><br/>";
"<a href='{{ jug.website }}' target=\"_blank\">Website</a><br/>";
if ("{{ jug.twitter }}".length > 0) {
popup += "<a href='https://twitter.com/{{ jug.twitter }}'>Twitter</a><br/>";
popup += "<a href='https://twitter.com/{{ jug.twitter }}' target=\"_blank\">Twitter</a><br/>";
}
if ("{{ jug.mastodon }}".length > 0) {
popup += "<a href='{{ jug.mastodon }}' target=\"_blank\">Mastodon</a><br/>";
}
L.marker([{{ longitude }}, {{ latitude }}],{icon: dukeIcon}).addTo(mymap).bindPopup(popup);
{% endfor %}
Expand Down

0 comments on commit a363d07

Please sign in to comment.