Add 404, blog section and unify the card partial

This commit is contained in:
Hazem Krimi
2023-11-13 19:47:23 +01:00
parent 3a07259ebc
commit 6df17ff272
7 changed files with 26 additions and 8 deletions
+8
View File
@@ -0,0 +1,8 @@
{{ define "styles" }}
{{ $styles := resources.Get "css/index.css" | toCSS | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
{{ end }}
{{ define "main" }}
<h2>Page Not Found</h2>
{{ end }}
+1 -1
View File
@@ -9,7 +9,7 @@
<section>
{{ range .Pages }}
{{ partial "project-card.html" . }}
{{ partial "card.html" . }}
{{ end }}
</section>
{{ end }}
+11 -1
View File
@@ -9,7 +9,17 @@
<p>These are all the projects I worked on personally and professionally.</p>
{{ range (where .Site.Pages "Section" "projects") }}
{{ range .Pages }}
{{ partial "project-card.html" . }}
{{ partial "card.html" . }}
{{ end }}
{{ end }}
</section>
<section>
<h2>Blog</h2>
<p>These are articles about things I learned about software engineering.</p>
{{ range (where .Site.Pages "Section" "blog") }}
{{ range .Pages }}
{{ partial "card.html" . }}
{{ end }}
{{ end }}
</section>
@@ -1,4 +1,4 @@
{{ $styles := resources.Get "css/partials/project-card.css" | toCSS | minify }}
{{ $styles := resources.Get "css/partials/card.css" | toCSS | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" />