Skip to content

Commit 27444bb

Browse files
authored
Add files via upload
1 parent 9424a81 commit 27444bb

File tree

1 file changed

+106
-46
lines changed

1 file changed

+106
-46
lines changed

_layouts/homepage.html

+106-46
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,74 @@
11
<!DOCTYPE html>
22
<html lang="{{ site.lang | default: "en-US" }}">
33
<head>
4-
<title>{{ site.title }} | {{site.affiliation}}</title>
4+
<title>{{ site.title }}'s Homepage</title>
55

6-
<meta charset="UTF-8">
7-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
9-
<meta name="description" content="{{ site.description }}">
10-
{% if site.keywords %}
6+
<meta charset="utf-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
8+
<meta name="description" content="{{ site.title }}">
119
<meta name="keywords" content="{{ site.keywords }}">
12-
{% endif %}
13-
{% if site.canonical %}
14-
<link rel="canonical" href="{{ site.canonical }}"/>
15-
{% endif %}
1610

11+
<meta property="og:type" content="website">
12+
<meta property="og:title" content="{{ site.title }} | {{ site.affiliation }}">
13+
<meta property="og:url" content="{{ site.canonical }}">
14+
<meta property="og:site_name" content="{{ site.title }} | {{ site.affiliation }}">
15+
<meta property="og:description" content="{{ site.description }}">
16+
<meta property="og:locale" content="default">
17+
<meta property="og:image" content="{{ site.avatar }}">
18+
<meta name="twitter:card" content="summary">
19+
<meta name="twitter:title" content="{{ site.title }} | {{ site.affiliation }}">
20+
<meta name="twitter:description" content="{{ site.description }}">
21+
<meta name="twitter:image" content="{{ site.avatar }}">
22+
23+
<link rel="canonical" href="{{site.canonical}}"/>
1724
<link rel="icon" media="(prefers-color-scheme:dark)" href="{{ site.favicon_dark }}" type="image/png" />
1825
<link rel="icon" media="(prefers-color-scheme:light)" href="{{ site.favicon }}" type="image/png" />
19-
<script src="./assets/js/favicon-switcher.js" type="application/javascript"></script>
20-
2126
<link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.6/css/academicons.min.css integrity="sha256-uFVgMKfistnJAfoCUQigIl+JfUaP47GrRKjf6CTPVmw=" crossorigin=anonymous>
22-
<link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin=anonymous>
23-
24-
{% if site.font == "Sans Serif" %}
25-
<link rel="stylesheet" href="./assets/css/font_sans_serif.css">
26-
{% else %}
27-
<link rel="stylesheet" href="./assets/css/font.css">
28-
{% endif %}
29-
{% if site.auto_dark_mode %}
27+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
3028
<link rel="stylesheet" href="./assets/css/style.css">
31-
<link rel="stylesheet" href="./assets/css/publications.css">
32-
{% else %}
33-
<link rel="stylesheet" href="./assets/css/style-no-dark-mode.css">
34-
<link rel="stylesheet" href="./assets/css/publications-no-dark-mode.css">
35-
{% endif %}
29+
<link rel="stylesheet" href="./assets/css/pub.css">
30+
<link rel="stylesheet" href="./assets/css/nav.css">
31+
32+
<script src="./assets/js/github-stars.js"></script>
33+
<script type="text/javascript" src="./assets/js/jquery.js"></script>
34+
<script src="./assets/js/favicon-switcher.js" type="application/javascript"></script>
35+
36+
<script type="text/javascript">
37+
function toggle_vis(id) {
38+
var e = document.getElementById(id);
39+
if (e.style.display == 'none')
40+
e.style.display = 'inline';
41+
else
42+
e.style.display = 'none';
43+
}
44+
</script>
45+
46+
<script>
47+
function myFunction() {
48+
var x = document.getElementById("myLinks");
49+
if (x.style.display === "block") {
50+
x.style.display = "none";
51+
} else {
52+
x.style.display = "block";
53+
}
54+
}
55+
</script>
56+
3657

3758
</head>
3859
<body>
39-
<div class="topnav">
60+
61+
<div class="topnav">
4062

41-
<a href="{{ site.affiliation_link }}"><img width="160" src="{{ site.affiliation_logo }}"></a>
63+
<a href="{{ site.affiliation_link }}"><img width="190" src="{{ site.affiliation_logo }}"></a>
4264

4365
<div id="myLinks">
44-
{% include nav.html %}
66+
{% include navigation.md %}
4567
</div>
4668

47-
<!-- <a href="javascript:void(0);" class="icon" onclick="myFunction()">
69+
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
4870
<i class="fa fa-bars"></i>
49-
</a> -->
71+
</a>
5072

5173
</div>
5274

@@ -69,7 +91,6 @@
6991
height: 30px;
7092
}
7193
</style>
72-
7394

7495
<div class="wrapper">
7596
<header>
@@ -78,7 +99,7 @@
7899
<a class="image avatar"><img src="{{ site.avatar }}" alt="avatar" /></a>
79100
{% endif %}
80101

81-
<h1>{{ site.title }}</h1>
102+
<h1>{{ site.title }}<br> {{ site.title_zh }}</h1>
82103

83104
{% if site.position %}
84105
<position style="font-size:1.10rem;">{{ site.position }}</position>
@@ -91,9 +112,22 @@ <h1>{{ site.title }}</h1>
91112
{% if site.email %}
92113
<email>{{ site.email }}</email>
93114
{% endif %}
115+
{% if site.email2 %}
116+
<br>
117+
<email>{{ site.email2 }}</email>
118+
{% endif %}
119+
120+
<br>
121+
<br>
94122

123+
{% if site.link_type == 'text' %}
124+
[<a href="{{ site.google_scholar }}">Google Scholar</a>]
95125
<br>
126+
[<a href="{{ site.cv_link }}">Curriculum Vitae</a>]
96127
<br>
128+
{% endif %}
129+
130+
{% if site.link_type == 'icon' %}
97131
<div class="social-icons">
98132
{% if site.google_scholar %}
99133
<a style="margin: 0 5px 0 0" href="{{ site.google_scholar }}">
@@ -121,10 +155,11 @@ <h1>{{ site.title }}</h1>
121155

122156
{% if site.twitter %}
123157
<a style="margin: 0 0 0 0" href="{{ site.twitter }}">
124-
<i class="fab fa-twitter"></i>
158+
<i class="fab fa-x-twitter"></i>
125159
</a>
126160
{% endif %}
127161
</div>
162+
{% endif %}
128163
<br>
129164

130165
</header>
@@ -134,25 +169,50 @@ <h1>{{ site.title }}</h1>
134169

135170
<br>
136171

137-
{% if site.enable_footnote %}
138-
<p><small>Powered by Jekyll and <a href="https://github.com/yaoyao-liu/minimal-light" target="_blank" rel="noopener">Minimal Light</a> theme.</small></p>
172+
{% if site.enable_last_update %}
173+
<small>Last Update:
174+
<script>
175+
const monthNames = ["January", "Februray", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
176+
];
177+
var modiDate = new Date(document.lastModified);
178+
var showAs = modiDate.getDate() + ". " + monthNames[modiDate.getMonth()] + " " + modiDate.getFullYear();
179+
document.write(showAs);
180+
</script>
181+
</small>
139182
{% endif %}
140183

184+
{% if site.footnote %}
185+
<div style="font: 12px/1.2 Crimson Pro, serif">
186+
<br>
187+
<a href="{{ site.footnote_link }}" rel="noopener">{{ site.footnote }}</a>
188+
</div>
189+
{% endif %}
190+
191+
<br>
192+
{% if site.clustrmaps_id %}
193+
<div style="width:100px; pointer-events: none;">
194+
<script type='text/javascript' id='clustrmaps' src='//cdn.clustrmaps.com/map_v2.js?cl=043361&w=153&t=n&d={{ site.clustrmaps_id }}&co=ffffff&cmo=3eb7f0&ct=043361'></script>
195+
</div>
196+
{% endif %}
197+
141198
</section>
142199
<footer>
143-
200+
<div style="font: 12px/1.2 Crimson Pro, serif">
201+
<p>
202+
<small>
203+
{% if site.imprint %}
204+
<a href="{{ site.imprint }}" rel="noopener"><autocolor>Imprint / Impressum</autocolor></a><br>
205+
{% endif %}
206+
{% if site.data_protection %}
207+
<a href="{{ site.data_protection }}" rel="noopener"><autocolor>Data Protection / Datenschutzhinweis</autocolor></a>
208+
{% endif %}
209+
</small>
210+
</p>
211+
</div>
212+
<br>
213+
<br>
144214
</footer>
145215
</div>
146216
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
147-
{% if site.google_analytics %}
148-
<script>
149-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
150-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
151-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
152-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
153-
ga('create', '{{ site.google_analytics }}', 'auto');
154-
ga('send', 'pageview');
155-
</script>
156-
{% endif %}
157217
</body>
158218
</html>

0 commit comments

Comments
 (0)