Skip to content

Commit 1eb1b4c

Browse files
committed
Add local-only visitor map on about page
1 parent 6181b17 commit 1eb1b4c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

_layouts/about.liquid

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,18 @@ layout: default
7272
<div class="contact-note">{{ site.contact_note }}</div>
7373
</div>
7474
{% endif %}
75-
76-
77-
75+
<!-- Visitor Analytics (local only) -->
76+
{% if site.visitor_map.enabled and jekyll.environment == 'development' %}
77+
<div class="visitor-analytics" style="margin-top: 1.5rem; text-align: center;">
78+
<details style="margin-top: 1rem;">
79+
<summary style="cursor: pointer; font-size: 1.0rem; color: #999; font-style: italic;">Visitor Map</summary>
80+
<div id="admin-analytics" style="margin-top: 1rem; opacity: 0.8;">
81+
<script type="text/javascript" id="mapmyvisitors" src="//mapmyvisitors.com/map.js?d=VGq-6ngx9SQOzI4uqqrGzo8741s606-66KR_dTZ9b00&cl=ffffff&w=a"></script>
82+
</div>
83+
</details>
84+
</div>
85+
{% endif %}
86+
7887
{% if site.newsletter.enabled and site.footer_fixed %}
7988
{% include scripts/newsletter.liquid center=true %}
8089
{% endif %}

0 commit comments

Comments
 (0)