Skip to content

Commit e3b274a

Browse files
ericeric
authored andcommitted
Refresh personal homepage and research content
1 parent de97579 commit e3b274a

56 files changed

Lines changed: 4806 additions & 353 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_config.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
# server process.
88

99
# Basic Site Settings
10-
locale : "Beijing-China"
10+
locale : "zh-CN"
1111
site_theme : "default"
12-
title : "Eric ZZ 张正 Personal Homepage"
12+
title : "张正 Eric ZZ"
1313
title_separator : "-"
1414
name : &name "张正 Eric ZZ"
15-
description : &description "大模型专家 | 连续创业者 | Llama中文社区联合发起人 | 清华大学CST"
16-
url : https://zhangzhengeric.github.io/EricZZ.github.io/ # the base hostname & protocol for your site e.g. "https://[your GitHub username].github.io" or if you already have some other page hosted on Github then use "https://[your GitHub username].github.io/[Your Repo Name]"
17-
baseurl : "" # the subpath of your site, e.g. "/blog"
18-
repository : "academicpages/academicpages.github.io"
15+
description : &description "Sage 创建者,毕业于清华大学计算机系,当前关注 Proactive Agent 与多模态模型。"
16+
url : "https://zhangzhengeric.github.io"
17+
baseurl : "/EricZZ.github.io"
18+
repository : "ZHangZHengEric/EricZZ.github.io"
1919

2020
# Site Author - The following control what appear as part of the author content on the side bar.
2121
# If a field is blank the icon and link will not appear, otherwise it will be shown.
@@ -24,9 +24,9 @@ author:
2424
# Biographic information
2525
avatar : "https://avatars.githubusercontent.com/u/45086558?s=400&v=4"
2626
name : "张正 Eric ZZ"
27-
bio : "大模型基础研究与应用"
27+
bio : "Sage 创建者 · 模型与 Agent 系统构建者"
2828
location : "北京"
29-
employer : "清华大学"
29+
employer :
3030
email : "zhengzhang13@icloud.com"
3131
wechat : "zhangzheng-thu"
3232

@@ -94,13 +94,15 @@ facebook:
9494
username :
9595
app_id :
9696
publisher :
97-
og_image : # Open Graph/Twitter default site image
97+
og_image : "2026-03-15-sage-ai-editorial-cover.png"
9898
# For specifying social profiles
9999
# - https://developers.google.com/structured-data/customize/social-profiles
100100
social:
101-
type : # Person or Organization (defaults to Person)
102-
name : # If the user or organization name differs from the site's name
103-
links: # An array of links to social media profiles
101+
type : Person
102+
name : "张正 Eric ZZ"
103+
links:
104+
- "https://github.com/ZHangZHengEric"
105+
- "https://github.com/ZHangZHengEric/Sage"
104106

105107

106108
# Analytics
@@ -190,12 +192,12 @@ defaults:
190192
path: ""
191193
type: posts
192194
values:
193-
layout: single
194-
author_profile: true
195+
layout: personal-post
196+
author_profile: false
195197
read_time: true
196-
comments: true
197-
share: true
198-
related: true
198+
comments: false
199+
share: false
200+
related: false
199201
# _pages
200202
- scope:
201203
path: ""
@@ -217,10 +219,10 @@ defaults:
217219
path: ""
218220
type: publications
219221
values:
220-
layout: single
221-
author_profile: true
222-
share: true
223-
comments: true
222+
layout: personal-post
223+
author_profile: false
224+
share: false
225+
comments: false
224226
# _portfolio
225227
- scope:
226228
path: ""
@@ -250,7 +252,7 @@ sass:
250252
permalink: /:categories/:title/
251253
# paginate: 5 # amount of posts to show
252254
# paginate_path: /page:num/
253-
timezone: Etc/UTC # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
255+
timezone: Asia/Shanghai
254256

255257

256258
# Plugins

_data/navigation.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@
88
# Markdown formatted page while the second is generated using JSON.
99

1010
main:
11-
- title: "出版物/Publications"
11+
- title: "开源作品"
12+
url: /open-source/
13+
14+
- title: "研究与出版"
1215
url: /publications/
13-
14-
# - title: "作品集/Portfolio"
15-
# url: /portfolio/
16-
17-
- title: "博客文章/Blog Posts"
16+
17+
- title: "文章"
1818
url: /year-archive/
19-
20-
- title: "简历/CV"
19+
20+
- title: "经历"
2121
url: /cv/
22-
23-
# - title: "简历/CV"
24-
# url: /cv-json/

_includes/base_path

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{% if site.url %}
2-
{% assign base_path = site.url | append: site.baseurl %}
3-
{% else %}
4-
{% assign base_path = site.github.url %}
5-
{% endif %}
1+
{% assign base_path = site.baseurl | default: "" %}

_includes/footer.html

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
{% include base_path %}
22

3-
{% if site.author.github or site.author.bitbucket or site.atom_feed.hide != true %}
43
<div class="page__footer-follow">
54
<ul class="social-icons">
6-
{% if site.data.ui-text[site.locale].follow_label %}
7-
<li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
8-
{% endif %}
95
{% if site.author.github %}
10-
<li><a href="http://github.com/{{ site.author.github }}"><i class="fab fa-github" aria-hidden="true"></i> GitHub</a></li>
11-
{% endif %}
12-
{% if site.author.bitbucket %}
13-
<li><a href="http://bitbucket.org/{{ site.author.bitbucket }}"><i class="fab fa-bitbucket" aria-hidden="true"></i> Bitbucket</a></li>
6+
<li><a href="https://github.com/{{ site.author.github }}"><i class="fab fa-github" aria-hidden="true"></i> GitHub</a></li>
147
{% endif %}
8+
<li><a href="{{ site.baseurl }}/open-source/"><i class="fas fa-code-branch" aria-hidden="true"></i> Sage</a></li>
9+
<li><a href="mailto:{{ site.author.email }}"><i class="fas fa-envelope" aria-hidden="true"></i> Email</a></li>
1510
{% if site.atom_feed.hide != true %}
16-
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ base_path }}/feed.xml{% endif %}"><i class="fa fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
11+
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ base_path }}/feed.xml{% endif %}"><i class="fa fa-fw fa-rss-square" aria-hidden="true"></i> RSS</a></li>
1712
{% endif %}
1813
</ul>
1914
</div>
20-
{% endif %}
2115

2216
<div class="page__footer-copyright">
23-
&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}, {{ site.data.ui-text[site.locale].powered_by | default: "Powered by" }} <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> &amp; <a href="https://github.com/academicpages/academicpages.github.io">AcademicPages</a>, a fork of <a href="https://mademistakes.com/work/minimal-mistakes-jekyll-theme/" rel="nofollow">Minimal Mistakes</a>.<br />
24-
Site last updated {{ "now" | date: '%Y-%m-%d' %}}
17+
&copy; {{ site.time | date: '%Y' }} {{ site.name | default: site.title }}. Build models. Build systems.
2518
</div>

_includes/footer/custom.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<!-- start custom footer snippets -->
2-
<a href="/sitemap/">Sitemap</a>
2+
<a href="{{ site.baseurl }}/sitemap/">Sitemap</a>
33
<!-- end custom footer snippets -->

_includes/head/custom.html

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,12 @@
88
<link rel="icon" type="image/png" href="{{ base_path }}/images/favicon-32x32.png" sizes="32x32"/>
99
<link rel="icon" type="image/png" href="{{ base_path }}/images/favicon-192x192.png" sizes="192x192"/>
1010
<link rel="manifest" href="{{ base_path }}/images/manifest.json"/>
11-
<link rel="icon" href="/images/favicon.ico"/>
12-
<meta name="theme-color" content="#ffffff"/>
11+
<link rel="icon" href="{{ base_path }}/images/favicon.ico"/>
12+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f8fafc"/>
13+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#090b10"/>
1314
<link rel="stylesheet" href="{{ base_path }}/assets/css/academicons.css"/>
1415

1516

16-
<!-- Support for MatJax -->
17-
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=es6"></script>
18-
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } }); </script>
19-
<script type="text/x-mathjax-config">
20-
MathJax.Hub.Config({
21-
tex2jax: {
22-
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
23-
processEscapes: true
24-
}
25-
});
26-
</script>
27-
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
28-
17+
<!-- MathJax 3 -->
2918
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
3019
<!-- end custom head snippets -->

_includes/masthead.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<div class="masthead__inner-wrap">
55
<div class="masthead__menu">
66
<nav id="site-nav" class="greedy-nav">
7-
<button><div class="navicon"></div></button>
7+
<button class="greedy-nav__toggle" type="button" aria-label="打开导航菜单" aria-expanded="false">
8+
<span class="navicon" aria-hidden="true"></span>
9+
</button>
810
<ul class="visible-links">
9-
<li class="masthead__menu-item masthead__menu-item--lg persist"><a href="{{ base_path }}/">{{ site.title }}</a></li>
11+
<li class="masthead__menu-item masthead__menu-item--lg persist"><a href="{{ base_path }}/" aria-label="返回张正的个人主页">{{ site.title }}</a></li>
1012
{% for link in site.data.navigation.main %}
1113
{% if link.url contains 'http' %}
1214
{% assign domain = '' %}
@@ -15,12 +17,20 @@
1517
{% endif %}
1618
<li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}">{{ link.title }}</a></li>
1719
{% endfor %}
18-
<li id="theme-toggle" class="masthead__menu-item persist tail">
19-
<a><i id="theme-icon" class="fa-solid fa-sun" aria-hidden="true" title="toggle theme"></i></a>
20-
</li>
2120
</ul>
2221
<ul class="hidden-links hidden"></ul>
2322
</nav>
23+
<button id="theme-toggle" class="masthead__theme-toggle" type="button" aria-label="切换到深色主题" aria-pressed="false">
24+
<span class="masthead__theme-icon" aria-hidden="true">
25+
<svg class="masthead__theme-icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round">
26+
<circle cx="12" cy="12" r="3.5"></circle>
27+
<path d="M12 2.5v2M12 19.5v2M4.6 4.6 6 6M18 18l1.4 1.4M2.5 12h2M19.5 12h2M4.6 19.4 6 18M18 6l1.4-1.4"></path>
28+
</svg>
29+
<svg class="masthead__theme-icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
30+
<path d="M20 15.2A8 8 0 0 1 8.8 4a8 8 0 1 0 11.2 11.2Z"></path>
31+
</svg>
32+
</span>
33+
</button>
2434
</div>
2535
</div>
26-
</div>
36+
</div>

_includes/scripts.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<script src="{{ base_path }}/assets/js/main.min.js"></script>
2+
<script src="{{ base_path }}/assets/js/site-accessibility.js"></script>
23

34
{% include analytics.html %}

_includes/seo.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66
{% endif %}
77
{% assign seo_url = seo_url | default: site.github.url %}
88

9-
{% if page.title %}
9+
{% if page.title and page.title != site.title %}
1010
{% assign seo_title = page.title | append: " " | append: site.title_separator | append: " " | append: site.title %}
11+
{% elsif page.title %}
12+
{% assign seo_title = page.title %}
1113
{% endif %}
1214

1315
{% if seo_title %}
1416
{% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
1517
{% endif %}
1618

1719
{% if site.url %}
18-
{% assign canonical_url = page.url | replace: "index.html", "" | prepend: site.url %}
20+
{% assign canonical_url = page.url | replace: "index.html", "" | prepend: seo_url %}
1921
{% endif %}
2022

2123
<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ site.title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
@@ -39,7 +41,8 @@
3941
{% assign seo_author_twitter = seo_author_twitter | replace: "@", "" %}
4042
{% endif %}
4143

42-
<meta property="og:locale" content="{{ site.locale | default: "en" }}">
44+
{% assign og_locale = site.locale | default: "en" | replace: "-", "_" %}
45+
<meta property="og:locale" content="{{ og_locale }}">
4346
<meta property="og:site_name" content="{{ site.title }}">
4447
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
4548

@@ -48,7 +51,7 @@
4851
<meta property="og:url" content="{{ page.url | prepend: seo_url | replace: "/index.html", "/" }}">
4952
{% endif %}
5053

51-
{% if page.excerpt %}
54+
{% if seo_description %}
5255
<meta property="og:description" name="description" content="{{ seo_description }}">
5356
{% endif %}
5457

@@ -105,9 +108,10 @@
105108
<script type="application/ld+json">
106109
{
107110
"@context": "http://schema.org",
108-
"@type": "Organization",
111+
"@type": "WebSite",
112+
"name": {{ site.title | jsonify }},
109113
"url": {{ seo_url | jsonify }},
110-
"logo": {{ site.og_image | prepend: "/images/" | prepend: base_path | jsonify }}
114+
"image": {{ site.og_image | prepend: "/images/" | prepend: base_path | jsonify }}
111115
}
112116
</script>
113117
{% endif %}

_layouts/default.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
{% include base_path %}
66

77
<!doctype html>
8-
<html lang="{{ site.locale | slice: 0,2 }}" class="no-js"{% if site.site_theme == "dark" %} data-theme="dark"{% endif %}>
8+
<html lang="{{ site.locale }}" class="no-js"{% if site.site_theme == "dark" %} data-theme="dark"{% endif %}>
99
<head>
10-
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css">
11-
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js"></script>
10+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css">
11+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js"></script>
1212
<script>hljs.initHighlightingOnLoad();</script>
1313
{% include head.html %}
1414
{% include head/custom.html %}
1515
</head>
1616

1717
<body>
1818

19+
<a class="screen-reader-shortcut" href="{% if page.layout == 'home' or page.layout == 'personal-archive' or page.layout == 'personal-post' %}#main-content{% else %}#main{% endif %}">跳转到主要内容</a>
1920
{% include browser-upgrade.html %}
2021
{% include masthead.html %}
2122

0 commit comments

Comments
 (0)