Skip to content

Commit d26c4af

Browse files
committed
minor modifications
1 parent 779c84f commit d26c4af

3 files changed

Lines changed: 59 additions & 19 deletions

File tree

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ title: blank # the website title (if blank, full name will be used instead)
66
first_name: Keyu
77
middle_name:
88
last_name: He
9+
name_note: (何柯宇)
910
email: keyuhe@cmu.edu
1011
description: > # the ">" symbol means to ignore newlines until "footer_text:"
1112
Welcome to Keyu He's homepage!
@@ -111,8 +112,7 @@ x_username: # your X handle
111112
youtube_id: # your youtube channel id (youtube.com/@<youtube_id>)
112113
zotero_username: # your zotero username
113114

114-
contact_note: >
115-
Note: the best way to reach me is via email or WeChat!
115+
contact_note:
116116

117117
# -----------------------------------------------------------------------------
118118
# Analytics and search engine verification

_layouts/about.liquid

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,36 @@ layout: default
55
<header class="post-header">
66
<h1 class="post-title">
77
{% if site.title == 'blank' %}
8-
<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }}
9-
{{ site.last_name }}
8+
<span class="name-with-tooltip" style="position: relative; display: inline-block;">
9+
<span class="font-weight-bold">{{ site.first_name }}</span> {{ site.middle_name }}
10+
{{ site.last_name }}
11+
{% if site.name_note %}
12+
<span class="tooltip-text" style="
13+
position: absolute;
14+
display: none;
15+
z-index: 1;
16+
top: 0;
17+
left: 100%;
18+
margin-left: 10px;
19+
white-space: nowrap;
20+
font-size: 1em;
21+
font-weight: normal;
22+
">
23+
<span style="color: inherit;">{{ site.name_note }}</span>
24+
<span style="color: #6c757d; font-style: italic; margin-left: 8px;">[Kuh-yoo Huh]</span>
25+
</span>
26+
{% endif %}
27+
</span>
1028
{% else %}
1129
{{ site.title }}
1230
{% endif %}
1331
</h1>
32+
33+
<style>
34+
.name-with-tooltip:hover .tooltip-text {
35+
display: block !important;
36+
}
37+
</style>
1438
<p class="desc">{{ page.subtitle }}</p>
1539
</header>
1640

@@ -72,21 +96,6 @@ layout: default
7296
<div class="contact-note">{{ site.contact_note }}</div>
7397
</div>
7498
{% endif %}
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
82-
type="text/javascript"
83-
id="mapmyvisitors"
84-
src="//mapmyvisitors.com/map.js?d=VGq-6ngx9SQOzI4uqqrGzo8741s606-66KR_dTZ9b00&cl=ffffff&w=a"
85-
></script>
86-
</div>
87-
</details>
88-
</div>
89-
{% endif %}
9099

91100
{% if site.newsletter.enabled and site.footer_fixed %}
92101
{% include scripts/newsletter.liquid center=true %}

_pages/visitor_map.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
layout: page
3+
permalink: /visitor_map/
4+
title: Visitor Map
5+
description: Real-time visitor analytics and geographic distribution
6+
nav: true
7+
nav_order: 8
8+
---
9+
10+
<div class="visitor-analytics" style="text-align: center; padding: 2rem 0;">
11+
<div id="visitor-map-container" style="margin: 0 auto; max-width: 1000px;">
12+
<h3 style="margin-bottom: 2rem;">Live Visitor Analytics</h3>
13+
<p style="color: #666; margin-bottom: 2rem;">
14+
This map shows real-time geographic distribution of visitors to this website.
15+
</p>
16+
17+
<div id="admin-analytics" style="opacity: 0.9;">
18+
<script
19+
type="text/javascript"
20+
id="mapmyvisitors"
21+
src="//mapmyvisitors.com/map.js?d=VGq-6ngx9SQOzI4uqqrGzo8741s606-66KR_dTZ9b00&cl=ffffff&w=a"
22+
></script>
23+
</div>
24+
25+
<div style="margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #eee;">
26+
<p style="font-size: 0.9rem; color: #999;">
27+
Analytics powered by MapMyVisitors. Data is anonymous and aggregated.
28+
</p>
29+
</div>
30+
</div>
31+
</div>

0 commit comments

Comments
 (0)