Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion themes/ndt2/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ html, body {
#map .leaflet-popup-content {
color: #222;
width: 400px;
height: 200px;
line-height: 1.4;
font-weight: normal;
font-size: 1em;
Expand Down
12 changes: 12 additions & 0 deletions themes/ndt2/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@
// If the venue has an external_url add it as a ink to the popup
if (v.external_url) {
popupText += `&nbsp;&nbsp;<a href="${v.external_url}" target="_blank" class="external-link" title="Website"><i class="fa-solid fa-arrow-up-right-from-square"></i></a>`;
const domain = new URL(v.external_url).hostname;
popupText += `
<br>
<a href="${v.external_url}" target="_blank" rel="noopener noreferrer">
<img
src="https://img.logo.dev/${domain}?token=pk_SBlY0W47S9Ww5wmX2PejKA"
alt="Site logo"
style="margin-top:8px; max-width:100%; border-radius:4px;"
onerror="this.style.display='none';"
/>
</a>
`;
}
// If the venue has a location, append it to the popup text
if (v.location) {
Expand Down