aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-11-30 00:06:46 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-11-30 00:06:46 +0300
commit48117f0deaf318298947c9f5a6fe447572ba2353 (patch)
tree7a19d7a9154916f5f3985ef9d39b9f70170e48f6
parentf88055964d70b6d87503e19dcf17fd42c7df8529 (diff)
Add education content
-rw-r--r--archetypes/education.md7
-rw-r--r--content/education/Blinn-College.md7
-rw-r--r--content/education/Southwestern-University.md7
-rw-r--r--layouts/partials/body/education.html26
4 files changed, 33 insertions, 14 deletions
diff --git a/archetypes/education.md b/archetypes/education.md
new file mode 100644
index 0000000..825f9df
--- /dev/null
+++ b/archetypes/education.md
@@ -0,0 +1,7 @@
+---
+title: '{{ replace .File.ContentBaseName `-` ` ` | title }}'
+degree: Degree
+location: City
+start_date: '{{ .Date }}'
+end_date :
+--- \ No newline at end of file
diff --git a/content/education/Blinn-College.md b/content/education/Blinn-College.md
new file mode 100644
index 0000000..e11a9ad
--- /dev/null
+++ b/content/education/Blinn-College.md
@@ -0,0 +1,7 @@
+---
+title: Blinn College
+degree: Associate’s in Liberal Arts
+location: Bryan, TX
+start_date: 2014-08-01
+end_date : 2018-05-01
+--- \ No newline at end of file
diff --git a/content/education/Southwestern-University.md b/content/education/Southwestern-University.md
new file mode 100644
index 0000000..3c1d528
--- /dev/null
+++ b/content/education/Southwestern-University.md
@@ -0,0 +1,7 @@
+---
+title: Southwestern University
+degree: Bachelor of Arts in Computer Science, Minor in Business
+location: Georgetown, TX
+start_date: 2018-08-01
+end_date : 2021-05-01
+--- \ No newline at end of file
diff --git a/layouts/partials/body/education.html b/layouts/partials/body/education.html
index cacd0db..f32f6ba 100644
--- a/layouts/partials/body/education.html
+++ b/layouts/partials/body/education.html
@@ -1,23 +1,21 @@
+{{ with .Site.GetPage "/education" }}
<h3>Education</h3>
<table>
<tbody>
+ {{ range sort (.Pages) "Params.end_date" "desc" }}
<tr>
- <td><strong>Southwestern University</strong></td>
- <td style="text-align: right;">Georgetown, TX</td>
+ <td><strong>{{ .Title }}</strong></td>
+ <td style="text-align: right;">{{ with .Params.location}}{{ . }}{{ end }}</td>
</tr>
<tr>
- <td><em>Bachelor of Arts in Computer Science, Minor in
- Business</em>
+ <td><em>{{ with .Params.degree}}{{ . }}{{ end }}</em>
+ </td>
+ <td style="text-align: right;"><em>
+ {{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }} –
+ {{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}</em>
</td>
- <td style="text-align: right;"><em>Aug. 2018 – May 2021</em></td>
- </tr>
- <tr>
- <td><strong>Blinn College</strong></td>
- <td style="text-align: right;">Bryan, TX</td>
- </tr>
- <tr>
- <td><em>Associate’s in Liberal Arts</em></td>
- <td style="text-align: right;"><em>Aug. 2014 – May 2018</em></td>
</tr>
+ {{ end }}
</tbody>
-</table> \ No newline at end of file
+</table>
+{{ end }} \ No newline at end of file