Skip to content

Commit 4dc2626

Browse files
authored
* Add an option for showing selected publications * Improve publication styles * Update README.md * Clearfix
1 parent b9dadac commit 4dc2626

File tree

8 files changed

+200
-115
lines changed

8 files changed

+200
-115
lines changed

README.md

+62-61
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,68 @@ If you like the theme, give it a star!
1313
[![Preview](assets/img/al-folio-preview.png)](https://alshedivat.github.io/al-folio/)
1414

1515

16+
## User community
17+
18+
The vibrant community of **al-folio** users is growing!
19+
Academics around the world use this theme for their homepages, blogs, lab pages, as well as webpages for courses, workshops, conferences, meetups, and more.
20+
Check out the community webpages below.
21+
Feel free to add your own page(s) by sending a PR.
22+
23+
<table>
24+
<tr>
25+
<td>Academics</td>
26+
<td>
27+
<a href="http://maruan.alshedivat.com" target="_blank">★</a>
28+
<a href="https://maithraraghu.com" target="_blank">★</a>
29+
<a href="http://platanois.org" target="_blank">★</a>
30+
<a href="https://otiliastr.github.io" target="_blank">★</a>
31+
<a href="https://www.maths.dur.ac.uk/~sxwc62/" target="_blank">★</a>
32+
<a href="http://jessachandler.com/" target="_blank">★</a>
33+
<a href="https://mayankm96.github.io/" target="_blank">★</a>
34+
<a href="https://markdean.info/" target="_blank">★</a>
35+
<a href="https://kakodkar.github.io/" target="_blank">★</a>
36+
<a href="https://sahirbhatnagar.com/" target="_blank">★</a>
37+
<a href="https://spd.gr/" target="_blank">★</a>
38+
<a href="https://jay-sarkar.github.io/" target="_blank">★</a>
39+
<a href="https://aborowska.github.io/" target="_blank">★</a>
40+
<a href="https://aditisgh.github.io/" target="_blank">★</a>
41+
<a href="https://alexhaydock.co.uk/" target="_blank">★</a>
42+
<a href="https://alixkeener.net/" target="_blank">★</a>
43+
<a href="https://andreea7b.github.io/" target="_blank">★</a>
44+
<a href="https://rishabhjoshi.github.io/" target="_blank">★</a>
45+
<a href="https://sheelabhadra.github.io/" target="_blank">★</a>
46+
<a href="https://giograno.me/" target="_blank">★</a>
47+
<a href="https://immsrini.github.io/" target="_blank">★</a>
48+
<a href="https://apooladian.github.io/" target="_blank">★</a>
49+
<a href="https://chinmoy-dutta.github.io/" target="_blank">★</a>
50+
<a href="https://liamcli.com/" target="_blank">★</a>
51+
</td>
52+
</tr>
53+
<tr>
54+
<td>Labs</td>
55+
<td>
56+
<a href="https://www.haylab.caltech.edu/" target="_blank">★</a>
57+
<a href="https://sjkimlab.github.io/" target="_blank">★</a>
58+
<a href="https://systemconsultantgroup.github.io/scg-folio/" target="_blank">★</a>
59+
<a href="https://decisionlab.ucsf.edu/" target="_blank">★</a>
60+
</td>
61+
</tr>
62+
<tr>
63+
<td>Courses</td>
64+
<td>
65+
CMU PGM (<a href="https://sailinglab.github.io/pgm-spring-2019/" target="_blank">S-19</a>),
66+
CMU DeepRL (<a href="https://cmudeeprl.github.io/703website_f19/" target="_blank">F-19</a>, <a href="https://cmudeeprl.github.io/Spring202010403website/" target="_blank">S-20</a>, <a href="https://cmudeeprl.github.io/703website/" target="_blank">F-20</a>)
67+
</td>
68+
</tr>
69+
<tr>
70+
<td>Conferences & workshops</td>
71+
<td>
72+
ML Retrospectives (NeurIPS: <a href="https://ml-retrospectives.github.io/neurips2019/" target="_blank">2019</a>, <a href="https://ml-retrospectives.github.io/neurips2020/" target="_blank">2020</a>; ICML: <a href="https://ml-retrospectives.github.io/icml2020/" target="_blank">2020</a>)
73+
</td>
74+
</tr>
75+
</table>
76+
77+
1678
## Getting started
1779

1880
For more about how to use Jekyll, check out [this tutorial](https://www.taniarascia.com/make-a-static-website-with-jekyll/).
@@ -152,67 +214,6 @@ If you would like to improve documentation, add your webpage to the list below,
152214
For more complex issues/bugs or feature requests, please open an issue using the appropriate template.
153215

154216

155-
## Users of al-folio
156-
157-
The community of **al-folio** users is growing!
158-
Academics around the world use this theme for their homepages, blogs, lab pages, as well as webpages for courses, workshops, conferences, meetups, and more.
159-
Check out the community webpages below.
160-
Feel free to add your own page(s) by sending a PR.
161-
162-
<table>
163-
<tr>
164-
<td>Academics</td>
165-
<td>
166-
<a href="http://maruan.alshedivat.com" target="_blank">★</a>
167-
<a href="https://maithraraghu.com" target="_blank">★</a>
168-
<a href="http://platanois.org" target="_blank">★</a>
169-
<a href="https://otiliastr.github.io" target="_blank">★</a>
170-
<a href="https://www.maths.dur.ac.uk/~sxwc62/" target="_blank">★</a>
171-
<a href="http://jessachandler.com/" target="_blank">★</a>
172-
<a href="https://mayankm96.github.io/" target="_blank">★</a>
173-
<a href="https://markdean.info/" target="_blank">★</a>
174-
<a href="https://kakodkar.github.io/" target="_blank">★</a>
175-
<a href="https://sahirbhatnagar.com/" target="_blank">★</a>
176-
<a href="https://spd.gr/" target="_blank">★</a>
177-
<a href="https://jay-sarkar.github.io/" target="_blank">★</a>
178-
<a href="https://aborowska.github.io/" target="_blank">★</a>
179-
<a href="https://aditisgh.github.io/" target="_blank">★</a>
180-
<a href="https://alexhaydock.co.uk/" target="_blank">★</a>
181-
<a href="https://alixkeener.net/" target="_blank">★</a>
182-
<a href="https://andreea7b.github.io/" target="_blank">★</a>
183-
<a href="https://rishabhjoshi.github.io/" target="_blank">★</a>
184-
<a href="https://sheelabhadra.github.io/" target="_blank">★</a>
185-
<a href="https://giograno.me/" target="_blank">★</a>
186-
<a href="https://immsrini.github.io/" target="_blank">★</a>
187-
<a href="https://apooladian.github.io/" target="_blank">★</a>
188-
<a href="https://chinmoy-dutta.github.io/" target="_blank">★</a>
189-
<a href="https://liamcli.com/" target="_blank">★</a>
190-
</td>
191-
</tr>
192-
<tr>
193-
<td>Labs</td>
194-
<td>
195-
<a href="https://www.haylab.caltech.edu/" target="_blank">★</a>
196-
<a href="https://sjkimlab.github.io/" target="_blank">★</a>
197-
<a href="https://systemconsultantgroup.github.io/scg-folio/" target="_blank">★</a>
198-
<a href="https://decisionlab.ucsf.edu/" target="_blank">★</a>
199-
</td>
200-
</tr>
201-
<tr>
202-
<td>Courses</td>
203-
<td>
204-
<a href="https://sailinglab.github.io/pgm-spring-2019/" target="_blank">CMU PGM 2019</a>
205-
</td>
206-
</tr>
207-
<tr>
208-
<td>Conferences & workshops</td>
209-
<td>
210-
ML Retrospectives (<a href="https://ml-retrospectives.github.io/neurips2019/" target="_blank">NeurIPS 2019</a>, <a href="https://ml-retrospectives.github.io/icml2020/" target="_blank">ICML 2020</a>)
211-
</td>
212-
</tr>
213-
</table>
214-
215-
216217
## FAQ
217218

218219
Here are some frequently asked questions.

_bibliography/papers.bib

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ @article{PhysRev.47.777
3838
doi={10.1103/PhysRev.47.777},
3939
url={http://link.aps.org/doi/10.1103/PhysRev.47.777},
4040
html={https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777},
41-
pdf={example_pdf.pdf}
41+
pdf={example_pdf.pdf},
42+
selected={true}
4243
}
4344

4445
@article{einstein1905molekularkinetischen,

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ first_name: You
77
middle_name: R.
88
last_name: (Long Last) Name
99
email: you@example.com
10-
description: > # this means to ignore newlines until "url:"
10+
description: > # the ">" symbol means to ignore newlines until "footer_text:"
1111
A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design.
1212
footer_text: >
1313
Powered by <a href="http://jekyllrb.com/" target="_blank">Jekyll</a> with <a href="https://github.com/alshedivat/al-folio">al-folio</a> theme.

_includes/selected_papers.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="publications">
2+
<h2>selected publications</h2>
3+
{% bibliography -f papers -q @*[selected=true]* %}
4+
</div>

_layouts/about.html

+18-15
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,31 @@ <h1 class="post-title">
1111
</header>
1212

1313
<article>
14-
<div class="row">
15-
<div class="col">
16-
{{ content }}
17-
</div>
18-
{% if page.profile %}
19-
<div class="profile col-4 {% if page.profile.align == 'left' %}order-first{% endif %}">
20-
{% if page.profile.image %}
21-
<img class="img-fluid z-depth-1 rounded" src="{{ page.profile.image | prepend: '/assets/img/' | relative_url }}">
22-
{% endif %}
23-
{% if page.profile.address %}
24-
<div class="address">
25-
{{ page.profile.address }}
26-
</div>
27-
{% endif %}
14+
{% if page.profile %}
15+
<div class="profile float-{% if page.profile.align == 'left' %}left{% else %}right{% endif %}">
16+
{% if page.profile.image %}
17+
<img class="img-fluid z-depth-1 rounded" src="{{ page.profile.image | prepend: '/assets/img/' | relative_url }}">
18+
{% endif %}
19+
{% if page.profile.address %}
20+
<div class="address">
21+
{{ page.profile.address }}
2822
</div>
29-
{% endif %}
23+
{% endif %}
24+
</div>
25+
{% endif %}
26+
27+
<div class="clearfix">
28+
{{ content }}
3029
</div>
3130

3231
{% if page.news %}
3332
{% include news.html %}
3433
{% endif %}
3534

35+
{% if page.selected_papers %}
36+
{% include selected_papers.html %}
37+
{% endif %}
38+
3639
{% if page.social %}
3740
<div class="social">
3841
{% include social.html %}

_layouts/bib.html

+40-18
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
{% if entry.type == "thesis" %}
1717
{{reference}}
1818
{% else %}
19-
<span class="title">{{entry.title}}</span>
20-
<span class="author">
19+
<div class="title">{{entry.title}}</div>
20+
<div class="author">
2121
{% for author in entry.author_array %}
2222
{% if forloop.length == 1 %}
2323
{% if author.last == site.scholar.last_name %}
@@ -49,9 +49,9 @@
4949
{% endunless %}
5050
{% endif %}
5151
{% endfor %}
52-
</span>
52+
</div>
5353

54-
<span class="periodical">
54+
<div class="periodical">
5555
{% if entry.type == "article" %}
5656
<em>{{entry.journal}}</em>
5757
{% elsif entry.type == "inproceedings" %}
@@ -60,41 +60,63 @@
6060
{% if entry.year %}
6161
{{entry.year}}
6262
{% endif %}
63-
</span>
63+
</div>
6464
{% endif %}
6565

66-
<span class="links">
66+
<div class="links">
6767
{% if entry.abstract %}
68-
[<a class="abstract">Abs</a>]
68+
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
6969
{% endif %}
7070
{% if entry.arxiv %}
71-
[<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">arXiv</a>]
71+
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
7272
{% endif %}
7373
{% if entry.html %}
74-
[<a href="{{ entry.html }}" target="_blank">HTML</a>]
74+
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
7575
{% endif %}
7676
{% if entry.pdf %}
77-
[<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" target="_blank">PDF</a>]
77+
{% if entry.pdf contains '://' %}
78+
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
79+
{% else %}
80+
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
81+
{% endif %}
7882
{% endif %}
7983
{% if entry.supp %}
80-
[<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Supp</a>]
84+
{% if entry.supp contains '://' %}
85+
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
86+
{% else %}
87+
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
88+
{% endif %}
89+
{% endif %}
90+
{% if entry.blog %}
91+
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Blog</a>
92+
{% endif %}
93+
{% if entry.code %}
94+
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Code</a>
8195
{% endif %}
8296
{% if entry.poster %}
83-
[<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Poster</a>]
97+
{% if entry.poster contains '://' %}
98+
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
99+
{% else %}
100+
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
101+
{% endif %}
84102
{% endif %}
85103
{% if entry.slides %}
86-
[<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Slides</a>]
104+
{% if entry.slides contains '://' %}
105+
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
106+
{% else %}
107+
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
108+
{% endif %}
87109
{% endif %}
88-
{% if entry.code %}
89-
[<a href="{{ entry.code }}" target="_blank">Code</a>]
110+
{% if entry.website %}
111+
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Website</a>
90112
{% endif %}
91-
</span>
113+
</div>
92114

93115
<!-- Hidden abstract block -->
94116
{% if entry.abstract %}
95-
<span class="abstract hidden">
117+
<div class="abstract hidden">
96118
<p>{{ entry.abstract }}</p>
97-
</span>
119+
</div>
98120
{% endif %}
99121
</div>
100122
</div>

_pages/about.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ profile:
1212
<p>123 your address street</p>
1313
<p>Your City, State 12345</p>
1414
15-
news: true
16-
social: true
15+
news: true # includes a list of news items
16+
selected_papers: true # includes a list of papers marked as "selected={true}"
17+
social: true # includes social icons at the bottom of the page
1718
---
1819

1920
Write your biography here. Tell the world about yourself. Link to your favorite [subreddit](http://reddit.com){:target="\_blank"}. You can put a picture in, too. The code is already in, just name your picture `prof_pic.jpg` and put it in the `img/` folder.

0 commit comments

Comments
 (0)