From 6d219536123c45ab9c2848163fe6726e263bf0c8 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 9 Nov 2023 21:07:33 +0100 Subject: [PATCH] Add projects section to home page --- assets/css/partials/project-card.css | 1 + content/_index.md | 5 ----- layouts/index.html | 12 +++++++++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/assets/css/partials/project-card.css b/assets/css/partials/project-card.css index 6296621..162dc26 100644 --- a/assets/css/partials/project-card.css +++ b/assets/css/partials/project-card.css @@ -8,6 +8,7 @@ article { color: var(--text); border-radius: 1.875rem; padding: 3.5rem 2.5rem; + margin-bottom: 2rem; } article h3 { diff --git a/content/_index.md b/content/_index.md index 46ff361..43ea105 100644 --- a/content/_index.md +++ b/content/_index.md @@ -2,8 +2,3 @@ title: "Hazem Krimi" date: 2023-10-18T20:03:43+01:00 --- - -## Contact - -Here you can contact me personally for any questions or opportunities. - diff --git a/layouts/index.html b/layouts/index.html index c069291..951ae57 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,17 @@ {{ end }} {{ define "main" }} - {{ .Content }} +

Projects

+
+ {{ range (where .Site.Pages "Section" "projects") }} + {{ range .Pages }} + {{ partial "project-card.html" . }} + {{ end }} + {{ end }} +
+

Contact

+

Here you can contact me personally for any questions or opportunities.

+ {{ partial "contact-form.html" . }} {{ end }} \ No newline at end of file