* Add an option for showing selected publications

* Improve publication styles

* Update README.md

* Clearfix
This commit is contained in:
Maruan 2020-09-03 19:24:34 -04:00 committed by GitHub
parent b9dadac8de
commit 4dc26260d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 203 additions and 118 deletions

123
README.md
View File

@ -13,6 +13,68 @@ If you like the theme, give it a star!
[![Preview](assets/img/al-folio-preview.png)](https://alshedivat.github.io/al-folio/)
## User community
The vibrant community of **al-folio** users is growing!
Academics around the world use this theme for their homepages, blogs, lab pages, as well as webpages for courses, workshops, conferences, meetups, and more.
Check out the community webpages below.
Feel free to add your own page(s) by sending a PR.
<table>
<tr>
<td>Academics</td>
<td>
<a href="http://maruan.alshedivat.com" target="_blank"></a>
<a href="https://maithraraghu.com" target="_blank"></a>
<a href="http://platanois.org" target="_blank"></a>
<a href="https://otiliastr.github.io" target="_blank"></a>
<a href="https://www.maths.dur.ac.uk/~sxwc62/" target="_blank"></a>
<a href="http://jessachandler.com/" target="_blank"></a>
<a href="https://mayankm96.github.io/" target="_blank"></a>
<a href="https://markdean.info/" target="_blank"></a>
<a href="https://kakodkar.github.io/" target="_blank"></a>
<a href="https://sahirbhatnagar.com/" target="_blank"></a>
<a href="https://spd.gr/" target="_blank"></a>
<a href="https://jay-sarkar.github.io/" target="_blank"></a>
<a href="https://aborowska.github.io/" target="_blank"></a>
<a href="https://aditisgh.github.io/" target="_blank"></a>
<a href="https://alexhaydock.co.uk/" target="_blank"></a>
<a href="https://alixkeener.net/" target="_blank"></a>
<a href="https://andreea7b.github.io/" target="_blank"></a>
<a href="https://rishabhjoshi.github.io/" target="_blank"></a>
<a href="https://sheelabhadra.github.io/" target="_blank"></a>
<a href="https://giograno.me/" target="_blank"></a>
<a href="https://immsrini.github.io/" target="_blank"></a>
<a href="https://apooladian.github.io/" target="_blank"></a>
<a href="https://chinmoy-dutta.github.io/" target="_blank"></a>
<a href="https://liamcli.com/" target="_blank"></a>
</td>
</tr>
<tr>
<td>Labs</td>
<td>
<a href="https://www.haylab.caltech.edu/" target="_blank"></a>
<a href="https://sjkimlab.github.io/" target="_blank"></a>
<a href="https://systemconsultantgroup.github.io/scg-folio/" target="_blank"></a>
<a href="https://decisionlab.ucsf.edu/" target="_blank"></a>
</td>
</tr>
<tr>
<td>Courses</td>
<td>
CMU PGM (<a href="https://sailinglab.github.io/pgm-spring-2019/" target="_blank">S-19</a>),
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>)
</td>
</tr>
<tr>
<td>Conferences & workshops</td>
<td>
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>)
</td>
</tr>
</table>
## Getting started
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,
For more complex issues/bugs or feature requests, please open an issue using the appropriate template.
## Users of al-folio
The community of **al-folio** users is growing!
Academics around the world use this theme for their homepages, blogs, lab pages, as well as webpages for courses, workshops, conferences, meetups, and more.
Check out the community webpages below.
Feel free to add your own page(s) by sending a PR.
<table>
<tr>
<td>Academics</td>
<td>
<a href="http://maruan.alshedivat.com" target="_blank"></a>
<a href="https://maithraraghu.com" target="_blank"></a>
<a href="http://platanois.org" target="_blank"></a>
<a href="https://otiliastr.github.io" target="_blank"></a>
<a href="https://www.maths.dur.ac.uk/~sxwc62/" target="_blank"></a>
<a href="http://jessachandler.com/" target="_blank"></a>
<a href="https://mayankm96.github.io/" target="_blank"></a>
<a href="https://markdean.info/" target="_blank"></a>
<a href="https://kakodkar.github.io/" target="_blank"></a>
<a href="https://sahirbhatnagar.com/" target="_blank"></a>
<a href="https://spd.gr/" target="_blank"></a>
<a href="https://jay-sarkar.github.io/" target="_blank"></a>
<a href="https://aborowska.github.io/" target="_blank"></a>
<a href="https://aditisgh.github.io/" target="_blank"></a>
<a href="https://alexhaydock.co.uk/" target="_blank"></a>
<a href="https://alixkeener.net/" target="_blank"></a>
<a href="https://andreea7b.github.io/" target="_blank"></a>
<a href="https://rishabhjoshi.github.io/" target="_blank"></a>
<a href="https://sheelabhadra.github.io/" target="_blank"></a>
<a href="https://giograno.me/" target="_blank"></a>
<a href="https://immsrini.github.io/" target="_blank"></a>
<a href="https://apooladian.github.io/" target="_blank"></a>
<a href="https://chinmoy-dutta.github.io/" target="_blank"></a>
<a href="https://liamcli.com/" target="_blank"></a>
</td>
</tr>
<tr>
<td>Labs</td>
<td>
<a href="https://www.haylab.caltech.edu/" target="_blank"></a>
<a href="https://sjkimlab.github.io/" target="_blank"></a>
<a href="https://systemconsultantgroup.github.io/scg-folio/" target="_blank"></a>
<a href="https://decisionlab.ucsf.edu/" target="_blank"></a>
</td>
</tr>
<tr>
<td>Courses</td>
<td>
<a href="https://sailinglab.github.io/pgm-spring-2019/" target="_blank">CMU PGM 2019</a>
</td>
</tr>
<tr>
<td>Conferences & workshops</td>
<td>
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>)
</td>
</tr>
</table>
## FAQ
Here are some frequently asked questions.

View File

@ -38,7 +38,8 @@
doi={10.1103/PhysRev.47.777},
url={http://link.aps.org/doi/10.1103/PhysRev.47.777},
html={https://journals.aps.org/pr/abstract/10.1103/PhysRev.47.777},
pdf={example_pdf.pdf}
pdf={example_pdf.pdf},
selected={true}
}
@article{einstein1905molekularkinetischen,

View File

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

View File

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

View File

@ -11,28 +11,31 @@ layout: default
</header>
<article>
<div class="row">
<div class="col">
{{ content }}
</div>
{% if page.profile %}
<div class="profile col-4 {% if page.profile.align == 'left' %}order-first{% endif %}">
{% if page.profile.image %}
<img class="img-fluid z-depth-1 rounded" src="{{ page.profile.image | prepend: '/assets/img/' | relative_url }}">
{% endif %}
{% if page.profile.address %}
<div class="address">
{{ page.profile.address }}
</div>
{% endif %}
{% if page.profile %}
<div class="profile float-{% if page.profile.align == 'left' %}left{% else %}right{% endif %}">
{% if page.profile.image %}
<img class="img-fluid z-depth-1 rounded" src="{{ page.profile.image | prepend: '/assets/img/' | relative_url }}">
{% endif %}
{% if page.profile.address %}
<div class="address">
{{ page.profile.address }}
</div>
{% endif %}
{% endif %}
</div>
{% endif %}
<div class="clearfix">
{{ content }}
</div>
{% if page.news %}
{% include news.html %}
{% endif %}
{% if page.selected_papers %}
{% include selected_papers.html %}
{% endif %}
{% if page.social %}
<div class="social">
{% include social.html %}

View File

@ -16,8 +16,8 @@
{% if entry.type == "thesis" %}
{{reference}}
{% else %}
<span class="title">{{entry.title}}</span>
<span class="author">
<div class="title">{{entry.title}}</div>
<div class="author">
{% for author in entry.author_array %}
{% if forloop.length == 1 %}
{% if author.last == site.scholar.last_name %}
@ -49,9 +49,9 @@
{% endunless %}
{% endif %}
{% endfor %}
</span>
</div>
<span class="periodical">
<div class="periodical">
{% if entry.type == "article" %}
<em>{{entry.journal}}</em>
{% elsif entry.type == "inproceedings" %}
@ -60,41 +60,63 @@
{% if entry.year %}
{{entry.year}}
{% endif %}
</span>
</div>
{% endif %}
<span class="links">
<div class="links">
{% if entry.abstract %}
[<a class="abstract">Abs</a>]
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
{% endif %}
{% if entry.arxiv %}
[<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">arXiv</a>]
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
{% endif %}
{% if entry.html %}
[<a href="{{ entry.html }}" target="_blank">HTML</a>]
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
{% endif %}
{% if entry.pdf %}
[<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" target="_blank">PDF</a>]
{% if entry.pdf contains '://' %}
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
{% else %}
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">PDF</a>
{% endif %}
{% endif %}
{% if entry.supp %}
[<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Supp</a>]
{% if entry.supp contains '://' %}
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
{% else %}
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Supp</a>
{% endif %}
{% endif %}
{% if entry.poster %}
[<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Poster</a>]
{% endif %}
{% if entry.slides %}
[<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Slides</a>]
{% if entry.blog %}
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Blog</a>
{% endif %}
{% if entry.code %}
[<a href="{{ entry.code }}" target="_blank">Code</a>]
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Code</a>
{% endif %}
</span>
{% if entry.poster %}
{% if entry.poster contains '://' %}
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
{% else %}
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Poster</a>
{% endif %}
{% endif %}
{% if entry.slides %}
{% if entry.slides contains '://' %}
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
{% else %}
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Slides</a>
{% endif %}
{% endif %}
{% if entry.website %}
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button" target="_blank">Website</a>
{% endif %}
</div>
<!-- Hidden abstract block -->
{% if entry.abstract %}
<span class="abstract hidden">
<div class="abstract hidden">
<p>{{ entry.abstract }}</p>
</span>
</div>
{% endif %}
</div>
</div>

View File

@ -12,8 +12,9 @@ profile:
<p>123 your address street</p>
<p>Your City, State 12345</p>
news: true
social: true
news: true # includes a list of news items
selected_papers: true # includes a list of papers marked as "selected={true}"
social: true # includes social icons at the bottom of the page
---
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.

View File

@ -35,13 +35,40 @@ a, table.table a {
// Profile
.profile {
.address {
font-family: monospace;
font-size: 1.2rem;
p {
margin: 0;
}
margin-left: 1rem;
width: 100%;
.address {
margin-bottom: 5px;
margin-top: 5px;
font-family: monospace;
font-size: 1.2rem;
p {
display: inline-block;
margin: 0;
}
}
}
@media (min-width: 576px) {
.profile {
width: 30%;
.address {
p { display: block; }
}
}
}
.post-description {
margin-bottom: 2rem;
a {
color: inherit;
font-size: 0.875rem;
&:hover {
color: $theme-color;
text-decoration: none;
}
}
}
@ -251,6 +278,19 @@ footer.sticky-bottom {
.publications {
margin-top: 2rem;
h1 {
color: $theme-color;
font-size: 2rem;
text-align: center;
margin-top: 1em;
margin-bottom: 1em;
}
h2 {
margin-bottom: 1rem;
span {
font-size: 1.5rem;
}
}
h2.year {
color: $grey-color-light;
border-top: 1px solid $grey-color-light;
@ -274,10 +314,17 @@ footer.sticky-bottom {
background-color: $theme-color;
padding-left: 1rem;
padding-right: 1rem;
a {
color: white;
&:hover {
text-decoration: none;
}
}
}
.award {
color: $theme-color !important;
border: 1px solid $theme-color;
}
}
span {
display: block;
}
.title {
font-weight: bolder;
@ -295,13 +342,19 @@ footer.sticky-bottom {
font-style: normal;
}
}
em.star {
border-bottom: none;
color: $theme-color;
font-style: normal;
}
a.abstract, a.bibtex {
cursor: pointer;
.links {
a.btn {
color: $text-color;
border: 1px solid $text-color;
padding-left: 1rem;
padding-right: 1rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
&:hover {
color: $theme-color;
border-color: $theme-color;
}
}
}
.hidden {
font-size: 0.875rem;
@ -332,10 +385,10 @@ footer.sticky-bottom {
-o-transition: 0.15s ease;
transition: all 0.15s ease;
}
span.abstract.hidden {
div.abstract.hidden {
border: dashed 1px white;
}
span.abstract.hidden.open {
div.abstract.hidden.open {
border-color: $grey-color;
}
}