-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub_index.html
566 lines (566 loc) · 22.8 KB
/
github_index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
<!DOCTYPE html>
<html lang="zh" class="no-js">
<head>
<meta charset="utf-8" />
<!-- begin SEO -->
<title>
academicpages is a ready-to-fork GitHub Pages template for academic
personal websites - 杜鹏理 / 博客
</title>
<meta property="og:locale" content="zh-CN" />
<meta property="og:site_name" content="杜鹏理 / 博客" />
<meta
property="og:title"
content="academicpages is a ready-to-fork GitHub Pages template for academic personal websites"
/>
<link rel="canonical" href="https://dupl10.github.io/" />
<meta property="og:url" content="https://dupl10.github.io/" />
<meta property="og:description" content="About me" />
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Person",
"name": "杜鹏理",
"url": "https://dupl10.github.io",
"sameAs": null
}
</script>
<!-- end SEO -->
<link
href="https://dupl10.github.io/feed.xml"
type="application/atom+xml"
rel="alternate"
title="杜鹏理 / 博客 Feed"
/>
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
document.documentElement.className =
document.documentElement.className.replace(/\bno-js\b/g, "") + " js ";
</script>
<!-- For all browsers -->
<link
rel="stylesheet"
href="https://dupl10.github.io/assets/css/main.css"
/>
<meta http-equiv="cleartype" content="on" />
<!-- start custom head snippets -->
<link
rel="apple-touch-icon"
sizes="57x57"
href="https://dupl10.github.io/images/apple-touch-icon-57x57.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="https://dupl10.github.io/images/apple-touch-icon-60x60.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="https://dupl10.github.io/images/apple-touch-icon-72x72.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="https://dupl10.github.io/images/apple-touch-icon-76x76.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="https://dupl10.github.io/images/apple-touch-icon-114x114.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="https://dupl10.github.io/images/apple-touch-icon-120x120.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="https://dupl10.github.io/images/apple-touch-icon-144x144.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="https://dupl10.github.io/images/apple-touch-icon-152x152.png?v=M44lzPylqQ"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://dupl10.github.io/images/apple-touch-icon-180x180.png?v=M44lzPylqQ"
/>
<link
rel="icon"
type="image/png"
href="https://dupl10.github.io/images/favicon-32x32.png?v=M44lzPylqQ"
sizes="32x32"
/>
<link
rel="icon"
type="image/png"
href="https://dupl10.github.io/images/android-chrome-192x192.png?v=M44lzPylqQ"
sizes="192x192"
/>
<link
rel="icon"
type="image/png"
href="https://dupl10.github.io/images/favicon-96x96.png?v=M44lzPylqQ"
sizes="96x96"
/>
<link
rel="icon"
type="image/png"
href="https://dupl10.github.io/images/favicon-16x16.png?v=M44lzPylqQ"
sizes="16x16"
/>
<link
rel="manifest"
href="https://dupl10.github.io/images/manifest.json?v=M44lzPylqQ"
/>
<link
rel="mask-icon"
href="https://dupl10.github.io/images/safari-pinned-tab.svg?v=M44lzPylqQ"
color="#000000"
/>
<link rel="shortcut icon" href="/images/favicon.ico?v=M44lzPylqQ" />
<meta name="msapplication-TileColor" content="#000000" />
<meta
name="msapplication-TileImage"
content="https://dupl10.github.io/images/mstile-144x144.png?v=M44lzPylqQ"
/>
<meta
name="msapplication-config"
content="https://dupl10.github.io/images/browserconfig.xml?v=M44lzPylqQ"
/>
<meta name="theme-color" content="#ffffff" />
<link
rel="stylesheet"
href="https://dupl10.github.io/assets/css/academicons.css"
/>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], processEscapes: true } });
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML"
async
></script>
<!-- end custom head snippets -->
</head>
<body>
<!--[if lt IE 9
]><div class="notice--danger align-center" style="margin: 0">
You are using an <strong>outdated</strong> browser. Please
<a href="http://browsehappy.com/">upgrade your browser</a> to improve
your experience.
</div><!
[endif]-->
<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
<button><div class="navicon"></div></button>
<ul class="visible-links">
<li class="masthead__menu-item masthead__menu-item--lg">
<a href="https://dupl10.github.io/">杜鹏理 / 博客</a>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/publications/"
>Publications</a
>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/talks/">Talks</a>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/teaching/">Teaching</a>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/portfolio/">Portfolio</a>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/year-archive/">Blog Posts</a>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/cv/">CV</a>
</li>
<li class="masthead__menu-item">
<a href="https://dupl10.github.io/markdown/">Guide</a>
</li>
</ul>
<ul class="hidden-links hidden"></ul>
</nav>
</div>
</div>
</div>
<div id="main" role="main">
<div class="sidebar sticky">
<div itemscope itemtype="http://schema.org/Person">
<div class="author__avatar">
<img
src="https://dupl10.github.io/images/face.jpg"
class="author__avatar"
alt="杜鹏理"
/>
</div>
<div class="author__content">
<h3 class="author__name">杜鹏理</h3>
<p class="author__bio">Your biography for the left-hand sidebar</p>
</div>
<div class="author__urls-wrapper">
<button class="btn btn--inverse">Follow</button>
<ul class="author__urls social-icons">
<li>
<i class="fa fa-fw fa-map-marker" aria-hidden="true"></i> 中国
</li>
<li>
<a href="mailto:[email protected]"
><i class="fas fa-fw fa-envelope" aria-hidden="true"></i>
Email</a
>
</li>
<li>
<a href="https://twitter.com/PengliDu"
><i
class="fab fa-fw fa-twitter-square"
aria-hidden="true"
></i>
Twitter</a
>
</li>
<li>
<a href="https://github.com/dupl10"
><i class="fab fa-fw fa-github" aria-hidden="true"></i>
Github</a
>
</li>
<li>
<a href="https://www.stackoverflow.com/users/11936722/pengli-du"
><i
class="fab fa-fw fa-stack-overflow"
aria-hidden="true"
></i>
Stackoverflow</a
>
</li>
<li>
<a href="https://www.weibo.com/p/1005052912070663"
><i class="fab fa-fw fa-weibo" aria-hidden="true"></i>
Weibo</a
>
</li>
<li>
<a
href="https://scholar.google.com.hk/citations?user=6fvFgM0AAAAJ&hl=zh-CN"
><i class="fas fa-fw fa-graduation-cap"></i> Google Scholar</a
>
</li>
<li>
<a href="https://www.ncbi.nlm.nih.gov/pubmed/?term=john+snow"
><i class="ai ai-pubmed-square ai-fw"></i> PubMed</a
>
</li>
<li>
<a href="http://orcid.org/0000-0002-0282-3321"
><i class="ai ai-orcid-square ai-fw"></i> ORCID</a
>
</li>
</ul>
</div>
</div>
</div>
<article class="page" itemscope itemtype="http://schema.org/CreativeWork">
<meta
itemprop="headline"
content="academicpages is a ready-to-fork GitHub Pages template for academic personal websites"
/><meta itemprop="description" content="About me" />
<div class="page__inner-wrap">
<header>
<h1 class="page__title" itemprop="headline">
academicpages is a ready-to-fork GitHub Pages template for
academic personal websites
</h1>
</header>
<section class="page__content" itemprop="text">
<p>
This is the front page of a website that is powered by the
<a href="https://github.com/academicpages/academicpages.github.io"
>academicpages template</a
>
and hosted on GitHub pages.
<a href="https://pages.github.com">GitHub pages</a> is a free
service in which websites are built and hosted from code and data
stored in a GitHub repository, automatically updating when a new
commit is made to the respository. This template was forked from
the
<a href="https://mmistakes.github.io/minimal-mistakes/"
>Minimal Mistakes Jekyll Theme</a
>
created by Michael Rose, and then extended to support the kinds of
content that academics have: publications, talks, teaching, a
portfolio, blog posts, and a dynamically-generated CV. You can
fork
<a href="https://github.com/academicpages/academicpages.github.io"
>this repository</a
>
right now, modify the configuration and markdown files, add your
own PDFs and other content, and have your own site for free, with
no ads! An older version of this template powers my own personal
website at <a href="http://stuartgeiger.com">stuartgeiger.com</a>,
which uses
<a href="https://github.com/staeiou/staeiou.github.io"
>this Github repository</a
>.
</p>
<h1 id="a-data-driven-personal-website">
A data-driven personal website
</h1>
<p>
Like many other Jekyll-based GitHub Pages templates, academicpages
makes you separate the website’s content from its form. The
content & metadata of your website are in structured markdown
files, while various other files constitute the theme, specifying
how to transform that content & metadata into HTML pages. You
keep these various markdown (.md), YAML (.yml), HTML, and CSS
files in a public GitHub repository. Each time you commit and push
an update to the repository, the
<a href="https://pages.github.com/">GitHub pages</a> service
creates static HTML pages based on these files, which are hosted
on GitHub’s servers free of charge.
</p>
<p>
Many of the features of dynamic content management systems (like
Wordpress) can be achieved in this fashion, using a fraction of
the computational resources and with far less vulnerability to
hacking and DDoSing. You can also modify the theme to your heart’s
content without touching the content of your site. If you get to a
point where you’ve broken something in Jekyll/HTML/CSS beyond
repair, your markdown files describing your talks, publications,
etc. are safe. You can rollback the changes or even delete the
repository and start over – just be sure to save the markdown
files! Finally, you can also write scripts that process the
structured data on the site, such as
<a
href="https://github.com/academicpages/academicpages.github.io/blob/master/talkmap.ipynb"
>this one</a
>
that analyzes metadata in pages about talks to display
<a href="https://academicpages.github.io/talkmap.html"
>a map of every location you’ve given a talk</a
>.
</p>
<h1 id="getting-started">Getting started</h1>
<ol>
<li>
Register a GitHub account if you don’t have one and confirm your
e-mail (required!)
</li>
<li>
Fork
<a
href="https://github.com/academicpages/academicpages.github.io"
>this repository</a
>
by clicking the “fork” button in the top right.
</li>
<li>
Go to the repository’s settings (rightmost item in the tabs that
start with “Code”, should be below “Unwatch”). Rename the
repository “[your GitHub username].github.io”, which will also
be your website’s URL.
</li>
<li>
Set site-wide configuration and create content & metadata
(see below – also see
<a href="http://archive.is/3TPas">this set of diffs</a> showing
what files were changed to set up
<a href="https://getorg-testacct.github.io">an example site</a>
for a user with the username “getorg-testacct”)
</li>
<li>
Upload any files (like PDFs, .zip files, etc.) to the files/
directory. They will appear at https://[your GitHub
username].github.io/files/example.pdf.
</li>
<li>
Check status by going to the repository settings, in the “GitHub
pages” section
</li>
</ol>
<h2 id="site-wide-configuration">Site-wide configuration</h2>
<p>
The main configuration file for the site is in the base directory
in
<a
href="https://github.com/academicpages/academicpages.github.io/blob/master/_config.yml"
>_config.yml</a
>, which defines the content in the sidebars and other site-wide
features. You will need to replace the default variables with ones
about yourself and your site’s github repository. The
configuration file for the top menu is in
<a
href="https://github.com/academicpages/academicpages.github.io/blob/master/_data/navigation.yml"
>_data/navigation.yml</a
>. For example, if you don’t have a portfolio or blog posts, you
can remove those items from that navigation.yml file to remove
them from the header.
</p>
<h2 id="create-content--metadata">Create content & metadata</h2>
<p>
For site content, there is one markdown file for each type of
content, which are stored in directories like _publications,
_talks, _posts, _teaching, or _pages. For example, each talk is a
markdown file in the
<a
href="https://github.com/academicpages/academicpages.github.io/tree/master/_talks"
>_talks directory</a
>. At the top of each markdown file is structured data in YAML
about the talk, which the theme will parse to do lots of cool
stuff. The same structured data about a talk is used to generate
the list of talks on the
<a href="https://academicpages.github.io/talks">Talks page</a>,
each
<a href="https://academicpages.github.io/talks/2012-03-01-talk-1"
>individual page</a
>
for specific talks, the talks section for the
<a href="https://academicpages.github.io/cv">CV page</a>, and the
<a href="https://academicpages.github.io/talkmap.html"
>map of places you’ve given a talk</a
>
(if you run this
<a
href="https://github.com/academicpages/academicpages.github.io/blob/master/talkmap.py"
>python file</a
>
or
<a
href="https://github.com/academicpages/academicpages.github.io/blob/master/talkmap.ipynb"
>Jupyter notebook</a
>, which creates the HTML for the map based on the contents of the
_talks directory).
</p>
<p><strong>Markdown generator</strong></p>
<p>
I have also created
<a
href="https://github.com/academicpages/academicpages.github.io/tree/master/markdown_generator"
>a set of Jupyter notebooks</a
>
that converts a CSV containing structured data about talks or
presentations into individual markdown files that will be properly
formatted for the academicpages template. The sample CSVs in that
directory are the ones I used to create my own personal website at
stuartgeiger.com. My usual workflow is that I keep a spreadsheet
of my publications and talks, then run the code in these notebooks
to generate the markdown files, then commit and push them to the
GitHub repository.
</p>
<h2 id="how-to-edit-your-sites-github-repository">
How to edit your site’s GitHub repository
</h2>
<p>
Many people use a git client to create files on their local
computer and then push them to GitHub’s servers. If you are not
familiar with git, you can directly edit these configuration and
markdown files directly in the github.com interface. Navigate to a
file (like
<a
href="https://github.com/academicpages/academicpages.github.io/blob/master/_talks/2012-03-01-talk-1.md"
>this one</a
>
and click the pencil icon in the top right of the content preview
(to the right of the “Raw | Blame | History” buttons). You can
delete a file by clicking the trashcan icon to the right of the
pencil icon. You can also create new files or upload files by
navigating to a directory and clicking the “Create new file” or
“Upload files” buttons.
</p>
<p>
Example: editing a markdown file for a talk
<img
src="/images/editing-talk.png"
alt="Editing a markdown file for a talk"
/>
</p>
<h2 id="for-more-info">For more info</h2>
<p>
More info about configuring academicpages can be found in
<a href="https://academicpages.github.io/markdown/">the guide</a>.
The
<a
href="https://mmistakes.github.io/minimal-mistakes/docs/configuration/"
>guides for the Minimal Mistakes theme</a
>
(which this theme was forked from) might also be helpful.
</p>
</section>
<footer class="page__meta"></footer>
</div>
</article>
</div>
<div class="page__footer">
<footer>
<!-- start custom footer snippets -->
<a href="/sitemap/">Sitemap</a>
<!-- end custom footer snippets -->
<div class="page__footer-follow">
<ul class="social-icons">
<li>
<a href="http://github.com/dupl10"
><i class="fab fa-github" aria-hidden="true"></i> GitHub</a
>
</li>
<li>
<a href="https://dupl10.github.io/feed.xml"
><i class="fa fa-fw fa-rss-square" aria-hidden="true"></i>
Feed</a
>
</li>
</ul>
</div>
<div class="page__footer-copyright">
© 2020 杜鹏理. Powered by
<a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> &
<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
>.
</div>
</footer>
</div>
<script src="https://dupl10.github.io/assets/js/main.min.js"></script>
<script>
(function (i, s, o, g, r, a, m) {
i["GoogleAnalyticsObject"] = r;
(i[r] =
i[r] ||
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(
window,
document,
"script",
"//www.google-analytics.com/analytics.js",
"ga"
);
ga("create", "", "auto");
ga("send", "pageview");
</script>
</body>
</html>