Skip to content

Commit dd46341

Browse files
committed
style update
1 parent 2803c9d commit dd46341

6 files changed

Lines changed: 131 additions & 17 deletions

File tree

assets/css/custom.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

hugo.toml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# baseURL = 'https://geekifan.github.io/zero-academic-page-starter/'
2-
baseURL = 'https://zhangw.github.io'
3-
title = 'Weijia Zhang | Academic Homepage'
2+
baseURL = 'https://willzhang3.github.io/'
3+
title = "Weijia Zhang | Academic Homepage"
44

55
# multi-language support
66
defaultContentLanguage = 'en'
@@ -19,12 +19,12 @@ disableKinds = ["taxonomy", "term", "RSS"]
1919
[languages.en]
2020
languageName = 'English'
2121
weight = 1
22-
title = 'Zero'
22+
title = "Weijia's Homepage"
2323

2424
[languages.en.params]
2525
author = "Weijia Zhang"
2626
description = "Ph.D. in AI, HKUST"
27-
motto = "Keep your eyes on the stars, and your feet on the ground."
27+
motto = "\"Keep your eyes on the stars,<br>and your feet on the ground.\""
2828

2929
[[languages.en.menu.main]]
3030
name = 'About Me'
@@ -47,27 +47,28 @@ disableKinds = ["taxonomy", "term", "RSS"]
4747
url = '#services'
4848
weight = 4
4949

50-
50+
5151
[params]
52+
5253
customCSS = ["css/custom.css"]
5354
profilePicture = "/images/profile_weijia.png"
5455
enableDarkMode = true
5556
footer = """Built with <a href='https://gohugo.io/' target='_blank'>Hugo</a> using the
5657
<a href='https://github.com/geekifan/zero-academic-page' target='_blank'>Zero Academic Page</a> theme. Hosted on <a href='https://pages.github.com/' target='_blank'>GitHub Pages</a>."""
5758
copyright = "© Weijia Zhang"
5859

59-
[[params.social]]
60-
name = "email"
61-
url = "vegazhang3@gmail.com"
62-
icon = "fas fa-envelope"
63-
description = "Email"
60+
[[params.social]]
61+
name = "google-scholar"
62+
url = "https://scholar.google.com/citations?user=lSi3CIoAAAAJ"
63+
icon = "fab fa-google-scholar"
64+
description = "Google Scholar"
65+
66+
[[params.social]]
67+
name = "email"
68+
url = "mailto:vegazhang3@gmail.com"
69+
icon = "fas fa-envelope"
70+
description = "Email"
6471

65-
[[params.social]]
66-
name = "google-scholar"
67-
url = "https://scholar.google.com/citations?user=lSi3CIoAAAAJ"
68-
icon = "fab fa-google-scholar"
69-
description = "Google Scholar"
70-
7172

7273
[build]
7374
writeStats = false

layouts/partials/head.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{{ $img := resources.Get .Site.Params.profilePicture }}
2+
<head>
3+
{{ partial "analytics.html" . }}
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{{ .Title }}</title>
7+
8+
<!-- SEO Meta Tags -->
9+
<meta name="description" content="{{ .Description | default .Summary | plainify}}">
10+
{{ if .Keywords }}
11+
<meta name="keywords" content="{{ delimit .Keywords ", " }}">
12+
{{ end }}
13+
<meta name="author" content="{{ .Site.Params.author }}">
14+
15+
<!-- Open Graph / Facebook -->
16+
<meta property="og:type" content="website">
17+
<meta property="og:url" content="{{ .Permalink }}">
18+
<meta property="og:title" content="{{ .Title }}">
19+
<meta property="og:description" content="{{ .Description | default .Summary | plainify}}">
20+
<meta property="og:image" content="{{ if .Params.image }}{{ .Params.image | absURL }}{{ else }}{{ $img.RelPermalink }}{{ end }}">
21+
22+
<!-- Twitter -->
23+
<meta name="twitter:card" content="summary_large_image">
24+
<meta name="twitter:title" content="{{ .Title }}">
25+
<meta name="twitter:description" content="{{ .Description | default .Summary | plainify}}">
26+
<meta name="twitter:image" content="{{ if .Params.image }}{{ .Params.image | absURL }}{{ else }}{{ $img.RelPermalink }}{{ end }}">
27+
28+
<!-- Canonical URL -->
29+
<link rel="canonical" href="{{ .Permalink }}">
30+
31+
<!-- Favicon -->
32+
<link rel="icon" type="image/x-icon" href="{{ .Site.Params.favicon | default "/favicon.ico" | relURL }}">
33+
34+
<!-- Custom CSS from config -->
35+
{{- range .Site.Params.customCSS }}
36+
<link rel="stylesheet" href="{{ . | relURL }}">
37+
{{- end }}
38+
39+
{{ $js := resources.Get "js/main.js" | minify }}
40+
<script src="{{ $js.RelPermalink }}" defer></script>
41+
<!-- Font Awesome for icons -->
42+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
43+
44+
45+
<!-- Google Fonts -->
46+
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet">
47+
</head>

layouts/partials/navbar.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<div class="navbar-start">
2+
<a href="{{ .Site.Home.Permalink }}">{{ .Site.Title }}</a>
3+
</div>
4+
5+
<div class="navbar-center hide-in-mobile">
6+
<div class="nav-links">
7+
{{ range .Site.Menus.main }}
8+
<div class="nav-item">
9+
{{ if hasPrefix .URL "http" }}
10+
<a href="{{ .URL }}" class="nav-link" target="_blank">
11+
{{ .Name }}
12+
<i class="fa-solid fa-arrow-up-right-from-square"></i>
13+
</a>
14+
{{ else }}
15+
<a href="{{ .URL }}" class="nav-link">
16+
{{ .Name }}
17+
</a>
18+
{{ end }}
19+
</div>
20+
{{ end }}
21+
</div>
22+
</div>
23+
24+
<div class="navbar-end">
25+
26+
{{ partial "language-selector.html" . }}
27+
28+
<div class="theme-toggle">
29+
<button id="theme-toggle-btn" aria-label="Toggle dark mode">
30+
<i class="fas fa-moon dark-icon"></i>
31+
<i class="fas fa-sun light-icon"></i>
32+
</button>
33+
</div>
34+
<button type="button" id="toggle-navbar-button" class="toggle-navbar-button hide-in-desktop" aria-label="Toggle Navbar" aria-expanded="false" aria-controls="navscreen" onclick="toggleNavbar()">
35+
<span>
36+
<span class="top"></span>
37+
<span class="middle"></span>
38+
<span class="bottom"></span>
39+
</span>
40+
</button>
41+
</div>

layouts/partials/profile-card.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="profile-container">
2+
<div class="profile-image">
3+
{{ $img := resources.Get .Site.Params.profilePicture }}
4+
<img src="{{ $img.RelPermalink }}" alt="{{ .Site.Params.author }}" class="rounded-avatar">
5+
</div>
6+
<div class="profile-name">
7+
<h2>{{ .Site.Params.author }}</h2>
8+
</div>
9+
<div class="profile-description">
10+
<p>{{ .Site.Params.description | markdownify }}</p>
11+
</div>
12+
<div class="profile-quote">
13+
<p>{{ .Site.Params.motto | markdownify }}</p>
14+
</div>
15+
<div class="social-links">
16+
{{ range .Site.Params.social }}
17+
<a href="{{ .url }}" target="_blank" rel="noopener noreferrer" class="social-icon">
18+
<i class="{{ .icon }}"></i>
19+
{{ with .description }}
20+
<span class="social-description">{{ . }}</span>
21+
{{ end }}
22+
</a>
23+
{{ end }}
24+
</div>
25+
</div>

0 commit comments

Comments
 (0)