From 40028ed8305c9b15d70c7fa8085833ad5f79357c Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Thu, 2 Jan 2025 10:10:57 -0500 Subject: [PATCH] Split portfolio template into partial sections --- src/_includes/layouts/portfolio.html | 102 +----------------- src/_includes/partials/education.html | 6 ++ .../partials/professionalExperience.html | 61 +++++++++++ src/_includes/partials/research.html | 6 ++ src/_includes/partials/resume.html | 18 ++++ 5 files changed, 96 insertions(+), 97 deletions(-) create mode 100644 src/_includes/partials/education.html create mode 100644 src/_includes/partials/professionalExperience.html create mode 100644 src/_includes/partials/research.html create mode 100644 src/_includes/partials/resume.html diff --git a/src/_includes/layouts/portfolio.html b/src/_includes/layouts/portfolio.html index 1e75c47..23fa51c 100644 --- a/src/_includes/layouts/portfolio.html +++ b/src/_includes/layouts/portfolio.html @@ -2,101 +2,9 @@ {% extends "layouts/base.html" %} {% block content %}
-
-
-

Resume

-
-
-
-
-

- The latest version of my resume is hosted on - GitHub. -

-
-
- - - - {% for profExp in collections.professionalExperience %} -
-
-
-
- - - -
-
-

{{ profExp.data.companyName }}

-

{{ profExp.data.jobTitle }}

-

{{ profExp.data.workLocation }}

-
{{ profExp.data.startDate }} - {{ profExp.data.endDate }}
- {{ profExp.content | safe }} -
-
-
- {% if collections.professionalExperienceProjects.length > 0 %} -
-
- {% for project in (collections.professionalExperienceProjects | findProjectAssociatedWithExperience(profExp.data.id)) %} - {% set projectSlug = (profExp.data.id + '-' + project.data.name | slugify) %} -
- -
-
- {{ project.content | safe }} -
-
-
- {% endfor %} -
-
- {% endif %} -
- {% endfor %} - -
-
-

Education

-
-
- -
-
-

Research

-
-
- -
-
-

Projects

-
-
+{% include "partials/resume.html" %} +{% include "partials/professionalExperience.html" %} +{% include "partials/education.html" %} +{% include "partials/research.html" %}
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/src/_includes/partials/education.html b/src/_includes/partials/education.html new file mode 100644 index 0000000..5cc06c7 --- /dev/null +++ b/src/_includes/partials/education.html @@ -0,0 +1,6 @@ + +
+
+

Education

+
+
\ No newline at end of file diff --git a/src/_includes/partials/professionalExperience.html b/src/_includes/partials/professionalExperience.html new file mode 100644 index 0000000..303b46a --- /dev/null +++ b/src/_includes/partials/professionalExperience.html @@ -0,0 +1,61 @@ + +
+ +
+ +{% for profExp in collections.professionalExperience %} +
+
+
+
+ + + +
+
+

{{ profExp.data.companyName }}

+

{{ profExp.data.jobTitle }}

+

{{ profExp.data.workLocation }}

+
{{ profExp.data.startDate }} - {{ profExp.data.endDate }}
+ {{ profExp.content | safe }} +
+
+
+ {% if collections.professionalExperienceProjects.length > 0 %} +
+
+ {% for project in (collections.professionalExperienceProjects | findProjectAssociatedWithExperience(profExp.data.id)) %} + {% set projectSlug = (profExp.data.id + '-' + project.data.name | slugify) %} +
+ +
+
+ {{ project.content | safe }} +
+
+
+ {% endfor %} +
+
+ {% endif %} +
+{% endfor %} \ No newline at end of file diff --git a/src/_includes/partials/research.html b/src/_includes/partials/research.html new file mode 100644 index 0000000..3e9991e --- /dev/null +++ b/src/_includes/partials/research.html @@ -0,0 +1,6 @@ + +
+
+

Research

+
+
\ No newline at end of file diff --git a/src/_includes/partials/resume.html b/src/_includes/partials/resume.html new file mode 100644 index 0000000..900a6bd --- /dev/null +++ b/src/_includes/partials/resume.html @@ -0,0 +1,18 @@ + +
+
+

Resume

+
+
+
+
+

+ The latest version of my resume is hosted on + GitHub. +

+
+
\ No newline at end of file