Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate cv.yml to RenderCV schema #2969

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
216 changes: 119 additions & 97 deletions _data/cv.yml
Original file line number Diff line number Diff line change
@@ -1,97 +1,119 @@
- title: General Information
type: map
contents:
- name: Full Name
value: Albert Einstein
- name: Date of Birth
value: 14th March 1879
- name: Languages
value: English, German

- title: Education
type: time_table
contents:
- title: PhD
institution: University of Zurich, Zurich, Switzerland
year: 1905
description:
- Description 1.
- Description 2.
- title: Description 3.
contents:
- Sub-description 1.
- Sub-description 2.
- title: Federal teaching diploma
institution: Eidgenössische Technische Hochschule, Zurich, Switzerland
year: 1900
description:
- Description 1.
- Description 2.

- title: Experience
type: time_table
contents:
- title: Professor of Theoretical Physics
institution: Institute for Advanced Study, Princeton University
year: 1933 - 1955
description:
- Description 1.
- Description 2.
- title: Description 3.
contents:
- Sub-description 1.
- Sub-description 2.
- title: Visiting Professor
institution: California Institute of Technology, Pasadena, California, US
year: 1933
description:
- Description 1.
- Description 2.

- title: Director
institution: Kaiser Wilhelm Institute for Physics, Berlin, Germany.
year: 1917-1933

- title: Professor of Theoretical Physics
institution: Karl-Ferdinand University, Prague, Czechoslovakia
year: 1911 - 1917
description:

- title: Associate Professor of Theoretical Physics
institution: University of Zurich, Zurich, Switzerland
year: 1909 - 1911

- title: Open Source Projects
type: time_table
contents:
- title: <a href="https://github.com/alshedivat/al-folio">al-folio</a>
year: 2015-now
description: A beautiful, simple, clean, and responsive Jekyll theme for academics.

- title: Honors and Awards
type: time_table
contents:
- year: 1921
items:
- Nobel Prize in Physics
- Matteucci Medal
- year: 2029
items:
- Max Planck Medal

- title: Academic Interests
type: nested_list
contents:
- title: Topic 1.
items:
- Description 1.
- Description 2.
- title: Topic 2.
items:
- Description 1.
- Description 2.

- title: Other Interests
type: list
contents:
- <u>Hobbies:</u> Hobby 1, Hobby 2, etc.
cv:
name: Albert Einstein
location: San Francisco, US
email: albert@einstein.de
phone: +49(912) 123-4567
website: https://alshedivat.github.io/al-folio/
social_networks:
- network: GitHub
username: AlbertEinstein
sections:
summary:
- A German-born theoretical physicist, widely ranked among the greatest and most influential scientists of all time
experience:
- company: Institute for Advanced Study, Princeton University
position: Professor of Theoretical Physics
location: "Princeton, NY"
start_date: "1933-01-01"
end_date: "1955-01-01"
summary: "Teaching at Palmer Physical Laboratory (now 302 Frist Campus Center). While not a professor at Princeton, I associated with the physics professors and continued to give lectures on campus."
highlights:
- Relativity
education:
- institution: University of Zurich
area: Physics
degree: PhD
start_date: "1905-01-01"
end_date: "1905-01-01"
location: "Zurich, CH"
highlights:
- Molecular Physics
- "***Thesis:*** Eine neue Bestimmung der Moleküldimensionen"
awards:
- label: Nobel Prize in Physics
details: Royal Swedish Academy of Sciences
summary: "The Nobel Prize in Physics 1921 was awarded to me for my services to Theoretical Physics, and especially for my discovery of the law of the photoelectric effect"
date: "1921-11-01"
certificates:
- institution: Stanford University
area: '[Quantum Teleportation](https:\\example.com)'
degree: "Certificate"
date: "2018-01-01"
icon: "fa-solid fa-clipboard-check"
- institution: Stanford University
area: '[Quantum Computing](https:\\example.com)'
degree: "Certificate"
date: "2018-01-01"
icon: "fa-solid fa-tag"
- institution: Stanford University
area: '[Quantum Cryptography](https:\\example.com)'
degree: "Certificate"
date: "2018-01-01"
icon: "fa-solid fa-hashtag"
- institution: Stanford University
area: '[Quantum Communication](https:\\example.com)'
degree: "Certificate"
date: "2018-01-01"
icon: "fa-solid fa-envelope"
publications:
- title: "Zur Elektrody/namik bewegter K\xF6rper"
authors: ["Albert Einstein", "Hermann Minkowski"]
date: "1905-06-30"
url: https://en.wikisource.org/wiki/Translation:On_the_Electrodynamics_of_Moving_Bodies
publisher: "[Annalen der Physik](https://onlinelibrary.wiley.com/journal/15213889)"
summary: "It concerned an interpretation of the [Michelson–Morley experiment](https://en.wikipedia.org/wiki/Michelson%E2%80%93Morley_experiment) and the properties of light and time. Special relativity incorporates the principle that the speed of light is the same for all inertial observers regardless of the state of motion of the source."
- title: "\xDCber einen die Erzeugung und Verwandlung des Lichtes betreffenden\
\ heuristischen Gesichtspunkt"
authors: []
date: "1905-03-18"
url: "https://de.wikisource.org/wiki/\xDCber_einen_die_Erzeugung_und_Verwandlung_des_Lichtes_betreffenden_heuristischen_Gesichtspunkt"
- title: "Die Grundlage der allgemeinen Relativit\xE4tstheorie"
authors: []
date: "1916-03-20"
url: "https://de.wikisource.org/wiki/Die_Grundlage_der_allgemeinen_Relativit\xE4\
tstheorie"
volunteering:
- company: "People's Climate March"
position: Lead Organizer
location: "Zurich, CH"
start_date: "2014-01-01"
end_date: "2015-07-01"
summary: "Lead organizer for the New York City branch of the People's Climate March, the largest climate march in history."
highlights:
- Awarded 'Climate Hero' award by Greenpeace for my efforts organizing the march.
- Men of the year 2014 by Time magazine
projects:
- name: "[Quantum Computing](https://en.wikipedia.org/wiki/Quantum_computing)"
start_date: "2018-01-01"
end_date: "2019-09-01"
summary: "Quantum computing is the use of quantum-mechanical phenomena such as superposition and entanglement to perform computation. Computers that perform quantum computations are known as quantum computers."
highlights: ["Quantum Teleportation", "Quantum Cryptography"]
- name: "[Example Project](https://example.com)"
date: 2024-05
highlights:
- Launched an [iOS app](https://example.com) in 09/2024
that currently has 10k+ monthly active users
- The app is made open-source (3,000+ stars [on GitHub](https://github.com))
summary: A web application for writing essays
skills:
- label: Physics
details: Quantum Mechanics, Quantum Computing, Quantum Information, Quantum
Cryptography, Quantum Communication, Quantum Teleportation
icon: "fa-solid fa-hashtag"
interests:
- label: Physics
details: Quantum Mechanics, Quantum Computing, Quantum Information, Quantum
Cryptography, Quantum Communication, Quantum Teleportation
icon: "fa-solid fa-hashtag"
languages:
- label: German
details: Native
- label: English
details: Fluent
references:
- label: "[Professor John Doe](mailto:professor@john.doe)"
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam condimentum, diam quis convallis euismod, arcu mi ullamcorper lorem, a vestibulum nunc magna at sem. Sed in risus ac felis varius blandit. D
icon: "fa-solid fa-laptop"
- label: "[Professor John Doe](mailto:professor@john.doe)"
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam condimentum, diam quis convallis euismod, arcu mi ullamcorper lorem, a vestibulum nunc magna at sem. Sed in risus ac felis varius blandit. D
icon: "fa-solid fa-thumbtack"
22 changes: 22 additions & 0 deletions _includes/cv/awards.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<ul class="card-text font-weight-light list-group list-group-flush">
{% for content in entry[1] %}
<li class="list-group-item">
<div class="row">
<div class="col-xs-2 cl-sm-2 col-md-2 text-center date-column">
{% if content.date %} {% assign date = content.date | split: '-' | join: '.' %} {% else %} {% assign date = '' %} {% endif %}
<span class="badge font-weight-bold danger-color-dark text-uppercase align-middle" style="min-width: 75px"> {{ date }} </span>
</div>
<div class="col-xs-10 cl-sm-10 col-md-10 mt-2 mt-md-0">
<h6 class="title font-weight-bold ml-1 ml-md-4">
{{ content.label | markdownify | remove: '<p>' | remove: '</p>' }}
</h6>
<h6 class="ml-1 ml-md-4" style="font-size: 0.95rem">{{ content.awarder | markdownify | remove: '<p>' | remove: '</p>' }}</h6>
<h6 class="ml-1 ml-md-4" style="font-size: 0.95rem; font-style: italic">
{{ content.details | markdownify | remove: '<p>' | remove: '</p>' }}
</h6>
<h6 class="ml-1 ml-md-4" style="font-size: 0.95rem">{{ content.summary | markdownify | remove: '<p>' | remove: '</p>' }}</h6>
</div>
</div>
</li>
{% endfor %}
</ul>
35 changes: 35 additions & 0 deletions _includes/cv/certificates.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<div class="list-groups">
{% assign certificates = entry[1] | sort: 'date' | reverse %}
{% for content in certificates %}
<div class="list-group col-md-6">
<table class="table-cv list-group-table">
<tbody>
<tr>
{% if content.icon %}
<td class="list-group-category-icon">
<i class="{{ content.icon }}"></i>
</td>
{% else %}
<td class="list-group-category-icon"></td>
{% endif %}
<!-- Calculate colspan number for category title -->
{% assign i = 1 %}
{% for item in content.items %}
{% assign i = i | plus: 1 %}
{% endfor %}
<td colspan="{{ i }}" class="list-group-category">
{{ content.area | markdownify | remove: '<p>' | remove: '</p>' }}
</td>
</tr>
<tr>
<td></td>
<td class="list-group-name">
<b>{{ content.institution | markdownify | remove: '<p>' | remove: '</p>' }}</b>
</td>
<td class="list-group-name">{{ content.date }}</td>
</tr>
</tbody>
</table>
</div>
{% endfor %}
</div>
56 changes: 56 additions & 0 deletions _includes/cv/education.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<ul class="card-text font-weight-light list-group list-group-flush">
{% assign education = entry[1] | sort: 'entry.start_date' | reverse %}
{% for content in education %}
<li class="list-group-item">
<div class="row">
<div class="col-xs-2 cl-sm-2 col-md-2 text-center date-column">
{% if content.start_date and content.start_date != '' %}
{% assign startDate = content.start_date | split: '-' | slice: 0, 2 | join: '.' %}
{% assign endDate = content.end_date | split: '-' | slice: 0, 2 | join: '.' | default: 'Present' %}
{% assign date = startDate | append: ' - ' %}
{% assign date = date | append: endDate %}
{% else %}
{% assign date = null %}
{% endif %}
<table class="table-cv">
<tbody>
<tr>
<td>
{% if date %}
<span class="badge font-weight-bold danger-color-dark text-uppercase align-middle" style="min-width: 75px"> {{ date }} </span>
{% endif %}
</td>
</tr>
{% if content.location %}
<tr>
<td>
<p class="location">
<i class="fa-solid fa-location-dot iconlocation"></i>
{{ content.location }}
</p>
</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
<div class="col-xs-10 cl-sm-10 col-md-10 mt-2 mt-md-0">
<h6 class="title font-weight-bold ml-1 ml-md-4">
{{ content.degree | markdownify | remove: '<p>' | remove: '</p>' }}
</h6>
<h6 class="ml-1 ml-md-4" style="font-size: 0.95rem">{{ content.institution | markdownify | remove: '<p>' | remove: '</p>' }}</h6>
<h6 class="ml-1 ml-md-4" style="font-size: 0.95rem; font-style: italic">
{{ content.area | markdownify | remove: '<p>' | remove: '</p>' }}
</h6>
<ul class="items">
{% for item in content.highlights %}
<li>
<span class="item">{{ item | markdownify | remove: '<p>' | remove: '</p>' }}</span>
</li>
{% endfor %}
</ul>
</div>
</div>
</li>
{% endfor %}
</ul>
46 changes: 46 additions & 0 deletions _includes/cv/gen-info.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<a class="anchor" id="basics"></a>
<div class="card mt-3 p-3">
<h3 class="card-title font-weight-medium">Basics</h3>
<table class="table table-cv table-sm table-borderless table-responsive">
{% if cv.name %}
<tr>
<td class="p-1 pr-2 font-weight-bold">
<b>Name</b>
</td>
<td class="p-1 pl-2 font-weight-light text">{{ cv.name }}</td>
</tr>
{% endif %}
{% if cv.email %}
<tr>
<td class="p-1 pr-2 font-weight-bold">
<b>Email</b>
</td>
<td class="p-1 pl-2 font-weight-light text">{{ cv.email }}</td>
</tr>
{% endif %}
{% if cv.phone %}
<tr>
<td class="p-1 pr-2 font-weight-bold">
<b>Phone</b>
</td>
<td class="p-1 pl-2 font-weight-light text">{{ cv.phone }}</td>
</tr>
{% endif %}
{% if cv.website %}
<tr>
<td class="p-1 pr-2 font-weight-bold">
<b>Url</b>
</td>
<td class="p-1 pl-2 font-weight-light text">{{ cv.website }}</td>
</tr>
{% endif %}
{% if cv.sections.summary %}
<tr>
<td class="p-1 pr-2 font-weight-bold">
<b>Summary</b>
</td>
<td class="p-1 pl-2 font-weight-light text">{{ cv.sections.summary }}</td>
</tr>
{% endif %}
</table>
</div>
Loading
Loading