mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Add 404, blog section and unify the card partial
This commit is contained in:
@@ -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 }}
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<section>
|
||||
{{ range .Pages }}
|
||||
{{ partial "project-card.html" . }}
|
||||
{{ partial "card.html" . }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
+11
-1
@@ -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 }}" />
|
||||
|
||||
Reference in New Issue
Block a user