From ef73888cdc8648a41b1ff6502013a5fe64f69ce5 Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:01:24 -0300 Subject: [PATCH] Added support for multiple profiles in about page (#1243) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses #963. Supports two setups: getting profile text from page content. ```markdown --- layout: about title: about permalink: / subtitle: Affiliations. Address. Contacts. Moto. Etc. profiles: # if you want to include more than one profile, just replicate the following block # and create one content file for each profile inside _pages/ - align: right image: prof_pic.jpg # content: about_einstein.md image_circular: false # crops the image to make it circular more_info: >

555 your office number

123 your address street

Your City, State 12345

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). 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. Put your address / P.O. box / other info right below your picture. You can also disable any these elements by editing `profile` property of the YAML header of your `_pages/about.md`. Edit `_bibliography/papers.bib` and Jekyll will render your [publications page](/al-folio/publications/) automatically. Link to your social media connections, too. This theme is set up to use [Font Awesome icons](http://fortawesome.github.io/Font-Awesome/) and [Academicons](https://jpswalsh.github.io/academicons/), like the ones below. Add your Facebook, Twitter, LinkedIn, Google Scholar, or just disable all of them. ``` Or getting profile text from `content` (useful when having multiple profiles). ```markdown --- layout: about title: about permalink: / subtitle: Affiliations. Address. Contacts. Moto. Etc. profiles: # if you want to include more than one profile, just replicate the following block # and create one content file for each profile inside _pages/ - align: right image: prof_pic.jpg content: about_einstein.md image_circular: false # crops the image to make it circular more_info: >

555 your office number

123 your address street

Your City, State 12345

- align: left image: prof_pic.jpg content: about_einstein.md image_circular: false # crops the image to make it circular more_info: >

555 your office number

123 your address street

Your City, State 12345

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 --- ``` Which looks like this: ![image](https://user-images.githubusercontent.com/31376482/223251956-aec09f92-55c4-4a17-8ab6-0b30da0970cc.png) --------- Signed-off-by: George Araújo Signed-off-by: George Araujo --- _layouts/about.html | 4 ++-- _layouts/profiles.html | 3 +++ _pages/about.md | 4 ++-- _pages/about_einstein.md | 3 +++ _pages/dropdown.md | 4 ++-- _pages/profiles.md | 3 +++ _sass/_base.scss | 4 ++-- 7 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 _layouts/profiles.html create mode 100644 _pages/about_einstein.md create mode 100644 _pages/profiles.md diff --git a/_layouts/about.html b/_layouts/about.html index 805fefcb084a..2fec844b2271 100644 --- a/_layouts/about.html +++ b/_layouts/about.html @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a3eb28a32508b351633a14e70417d56fc12cd2b36355a1c41c55b84a1d0e8830 -size 2607 +oid sha256:6dce034e36bf9ba33459261ab86fddb889aa41d7a488de981043d6d6ac5ed6e6 +size 2613 diff --git a/_layouts/profiles.html b/_layouts/profiles.html new file mode 100644 index 000000000000..9f14c61adad9 --- /dev/null +++ b/_layouts/profiles.html @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5414057c17dbf0ab29afc067ce004a21df880cab50a48857867abfb6efc0bca6 +size 1491 diff --git a/_pages/about.md b/_pages/about.md index 4748551a1d95..a7522171fc64 100644 --- a/_pages/about.md +++ b/_pages/about.md @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0dfc35cb68e43700f5862e985a11e4018ea0bae7d05d0e66e699093578b6048b -size 1436 +oid sha256:a68e457310d3706d9241d07675f16191efdb20baba664a7aec14e73619bd5ae4 +size 1437 diff --git a/_pages/about_einstein.md b/_pages/about_einstein.md new file mode 100644 index 000000000000..32366bc14142 --- /dev/null +++ b/_pages/about_einstein.md @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c0e8be4b31af003b1ddd8302c22a89869a43dd4c722277b001536781582826d +size 843 diff --git a/_pages/dropdown.md b/_pages/dropdown.md index a9fcc898d4f1..e139bce0a9d6 100644 --- a/_pages/dropdown.md +++ b/_pages/dropdown.md @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9a3c4983c45c343d3082d30cba7ba86d17897ef44dd061cf896ddeffda63ff00 -size 214 +oid sha256:a17f5cb4a1faa64345c46138fdb9e778b342005bc9fdafd7cc6577c19356d858 +size 213 diff --git a/_pages/profiles.md b/_pages/profiles.md new file mode 100644 index 000000000000..247ac7fb9887 --- /dev/null +++ b/_pages/profiles.md @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8121e1463bf4a3025c5ec4737b6dd53970b7fb222b68a926988ace15b607c2c4 +size 834 diff --git a/_sass/_base.scss b/_sass/_base.scss index 511027cc9782..ce41ccb4b415 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1c4102cb6c80f3edb0234baf4569970d0d6b0f0e4dbe127da822019ebe96f5c2 -size 18198 +oid sha256:e4d4492cfca90cc42c31f5d727a403602d755ff5f490a76cf99081f1d6869ef5 +size 18200