From 641b36e69e9c39a960240c6df12ef478fb319682 Mon Sep 17 00:00:00 2001 From: Rohan Deb Sarkar Date: Sun, 26 Jun 2022 04:28:59 +0530 Subject: [PATCH] Add support for CV (#628) --- _data/cv.yml | 97 +++++++++++++++++++++++++++++++++++ _includes/cv/list.html | 5 ++ _includes/cv/map.html | 8 +++ _includes/cv/nested_list.html | 14 +++++ _includes/cv/time_table.html | 59 +++++++++++++++++++++ _layouts/cv.html | 35 +++++++++++++ _pages/_dropdown.md | 2 +- _pages/_teaching.md | 8 --- _pages/cv.md | 8 +++ _pages/publications.md | 2 +- _pages/teaching.md | 12 +++++ _sass/_base.scss | 31 ++++++++--- 12 files changed, 265 insertions(+), 16 deletions(-) create mode 100644 _data/cv.yml create mode 100644 _includes/cv/list.html create mode 100644 _includes/cv/map.html create mode 100644 _includes/cv/nested_list.html create mode 100644 _includes/cv/time_table.html create mode 100644 _layouts/cv.html delete mode 100644 _pages/_teaching.md create mode 100644 _pages/cv.md create mode 100644 _pages/teaching.md diff --git a/_data/cv.yml b/_data/cv.yml new file mode 100644 index 000000000000..5b1157240e07 --- /dev/null +++ b/_data/cv.yml @@ -0,0 +1,97 @@ +- 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: al-folio + 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: + - Hobbies: Hobby 1, Hobby 2, etc. diff --git a/_includes/cv/list.html b/_includes/cv/list.html new file mode 100644 index 000000000000..7562585916d3 --- /dev/null +++ b/_includes/cv/list.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/_includes/cv/map.html b/_includes/cv/map.html new file mode 100644 index 000000000000..e0d1983ef0ee --- /dev/null +++ b/_includes/cv/map.html @@ -0,0 +1,8 @@ + + {% for content in entry.contents %} + + + + + {% endfor %} +
{{ content.name }}{{ content.value }}
\ No newline at end of file diff --git a/_includes/cv/nested_list.html b/_includes/cv/nested_list.html new file mode 100644 index 000000000000..4778aca07ff1 --- /dev/null +++ b/_includes/cv/nested_list.html @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/_includes/cv/time_table.html b/_includes/cv/time_table.html new file mode 100644 index 000000000000..123b9d099fde --- /dev/null +++ b/_includes/cv/time_table.html @@ -0,0 +1,59 @@ + \ No newline at end of file diff --git a/_layouts/cv.html b/_layouts/cv.html new file mode 100644 index 000000000000..bb3d85af4f6b --- /dev/null +++ b/_layouts/cv.html @@ -0,0 +1,35 @@ +--- +layout: default +--- + +
+ +
+

{{ page.title }} {% if page.cv_pdf %}{% endif %}

+

{{ page.description }}

+
+ +
+
+ {% for entry in site.data.cv %} +
+

{{ entry.title }}

+
+ {% if entry.type == "list" %} + {% include cv/list.html %} + {% elsif entry.type == "map" %} + {% include cv/map.html %} + {% elsif entry.type == "nested_list" %} + {% include cv/nested_list.html %} + {% elsif entry.type == "time_table" %} + {% include cv/time_table.html %} + {% else %} + {{ entry.contents }} + {% endif %} +
+
+ {% endfor %} +
+
+ +
diff --git a/_pages/_dropdown.md b/_pages/_dropdown.md index caef522350c4..4a8a8052ac4c 100644 --- a/_pages/_dropdown.md +++ b/_pages/_dropdown.md @@ -2,7 +2,7 @@ layout: page title: submenus nav: true -nav_order: 3 +nav_order: 5 dropdown: true children: - title: publications diff --git a/_pages/_teaching.md b/_pages/_teaching.md deleted file mode 100644 index ad8fe8f76f28..000000000000 --- a/_pages/_teaching.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -layout: page -permalink: /teaching/ -title: teaching -description: Materials for courses you taught. Replace this text with your description. -nav: true -nav_order: 2 ---- diff --git a/_pages/cv.md b/_pages/cv.md new file mode 100644 index 000000000000..d879c1f65c61 --- /dev/null +++ b/_pages/cv.md @@ -0,0 +1,8 @@ +--- +layout: cv +permalink: /cv/ +title: cv +nav: true +nav_order: 3 +cv_pdf: example_pdf.pdf +--- diff --git a/_pages/publications.md b/_pages/publications.md index 102670b9e83e..f3c01f53377e 100644 --- a/_pages/publications.md +++ b/_pages/publications.md @@ -5,7 +5,7 @@ title: publications description: publications by categories in reversed chronological order and grouped by type years: [2021] nav: true -nav_order: 2 +nav_order: 1 ---
diff --git a/_pages/teaching.md b/_pages/teaching.md new file mode 100644 index 000000000000..1a6c5be844c7 --- /dev/null +++ b/_pages/teaching.md @@ -0,0 +1,12 @@ +--- +layout: page +permalink: /teaching/ +title: teaching +description: Materials for courses you taught. Replace this text with your description. +nav: true +nav_order: 4 +--- + +For now, this page is assumed to be a static description of your courses. You can convert it to a collection similar to `_projects/` so that you can have a dedicated page for each course. + +Organize your courses by years, topics, or universities, however you like! diff --git a/_sass/_base.scss b/_sass/_base.scss index d21521293326..ad1586e35f89 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -13,12 +13,12 @@ hr { } table { - td, th { - color: var(--global-text-color); - } - td { - font-size: 1rem; - } + td, th { + color: var(--global-text-color); + } + td { + font-size: 1rem; + } } a, table.table a { @@ -282,6 +282,25 @@ footer.sticky-bottom { font-size: 0.9rem; } +// CV + +.cv { + margin-bottom: 40px; + + .card { + background-color: var(--global-card-bg-color); + border: 1px solid var(--global-divider-color); + + .list-group-item { + background-color: inherit; + + .badge { + color: var(--global-card-bg-color) !important; + background-color: var(--global-theme-color) !important; + } + } + } +} // Blog