From d9c47b1a828317ca3db8cefcf3410409d7b4bd4d Mon Sep 17 00:00:00 2001 From: "Oscar L. Cruz Gonzalez" Date: Tue, 14 May 2024 16:02:41 +0200 Subject: [PATCH] Update experience.md and add structure details --- _layouts/home.html | 141 ++++++++++++++++ _tabs/about.md | 4 +- _tabs/education.md | 6 +- _tabs/experience.md | 42 +++-- _tabs/research.md | 158 ++++++++++++++---- assets/img/experience/project_marseille.png | Bin 0 -> 707817 bytes assets/img/experience/project_paris.png | Bin 0 -> 568914 bytes .../postdoc-marseille-2023-2025.md | 19 +++ .../postdoc-paris-2021-2022.md | 27 +++ 9 files changed, 351 insertions(+), 46 deletions(-) create mode 100644 _layouts/home.html create mode 100644 assets/img/experience/project_marseille.png create mode 100644 assets/img/experience/project_paris.png create mode 100644 experience-full-description/postdoc-marseille-2023-2025.md create mode 100644 experience-full-description/postdoc-paris-2021-2022.md diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..03a37c6 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,141 @@ +--- +layout: default +refactor: true +--- + +{% include lang.html %} + +{% assign pinned = site.posts | where: 'pin', 'true' %} +{% assign default = site.posts | where_exp: 'item', 'item.pin != true and item.hidden != true' %} + +{% assign posts = '' | split: '' %} + + + +{% assign offset = paginator.page | minus: 1 | times: paginator.per_page %} +{% assign pinned_num = pinned.size | minus: offset %} + +{% if pinned_num > 0 %} + {% for i in (offset..pinned.size) limit: pinned_num %} + {% assign posts = posts | push: pinned[i] %} + {% endfor %} +{% else %} + {% assign pinned_num = 0 %} +{% endif %} + + + + + +
+
⚠️
+
Website under construction.
+
+ + + +{% assign default_beg = offset | minus: pinned.size %} + +{% if default_beg < 0 %} + {% assign default_beg = 0 %} +{% endif %} + +{% assign default_num = paginator.posts | size | minus: pinned_num %} +{% assign default_end = default_beg | plus: default_num | minus: 1 %} + +{% if default_num > 0 %} + {% for i in (default_beg..default_end) %} + {% assign posts = posts | push: default[i] %} + {% endfor %} +{% endif %} + +
+ {% for post in posts %} +
+ + {% assign card_body_col = '12' %} + + {% if post.image %} + {% assign src = post.image.path | default: post.image %} + {% unless src contains '//' %} + {% assign src = post.media_subpath | append: '/' | append: src | replace: '//', '/' %} + {% endunless %} + + {% assign alt = post.image.alt | xml_escape | default: 'Preview Image' %} + + {% assign lqip = null %} + + {% if post.image.lqip %} + {% capture lqip %}lqip="{{ post.image.lqip }}"{% endcapture %} + {% endif %} + +
+ {{ alt }} +
+ + {% assign card_body_col = '7' %} + {% endif %} + +
+
+

{{ post.title }}

+ +
+

{% include post-description.html %}

+
+ + + +
+ +
+
+
+ {% endfor %} +
+ + +{% if paginator.total_pages > 1 %} + {% include post-paginator.html %} +{% endif %} \ No newline at end of file diff --git a/_tabs/about.md b/_tabs/about.md index fb84f34..97b0ae6 100644 --- a/_tabs/about.md +++ b/_tabs/about.md @@ -4,5 +4,5 @@ icon: fas fa-info-circle order: 2 --- -> Add Markdown syntax content to file `_tabs/about.md`{: .filepath } and it will show up on this page. -{: .prompt-tip } +> Website under construction. +{: .prompt-warning } diff --git a/_tabs/education.md b/_tabs/education.md index 2983691..e826de3 100644 --- a/_tabs/education.md +++ b/_tabs/education.md @@ -64,7 +64,7 @@ order: 4
- LMA image + LMA image
@@ -88,7 +88,7 @@ order: 4
- UH image + UH image
@@ -111,7 +111,7 @@ order: 4
- UH image + UH image
diff --git a/_tabs/experience.md b/_tabs/experience.md index 3ae7e06..664b8cd 100644 --- a/_tabs/experience.md +++ b/_tabs/experience.md @@ -2,13 +2,14 @@ layout: page icon: fa-solid fa-briefcase order: 3 +link_postdoc_marseille: /documentation/postdoc_marseille_info ---