From 077c4fe7285e6453cfe47d1dd8b234d42ddcac9c Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 22 Nov 2023 19:03:03 +0100 Subject: [PATCH] Improve SEO --- hugo.toml | 2 ++ layouts/_default/baseof.html | 23 +++++++++++++++++++++-- layouts/index.html | 4 ++-- layouts/partials/about-card.html | 2 +- layouts/partials/card.html | 6 +++++- 5 files changed, 31 insertions(+), 6 deletions(-) diff --git a/hugo.toml b/hugo.toml index 0f72e1f..68d7a9e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -14,6 +14,8 @@ enableRobotsTXT = true [params] formSpreeURL = 'https://formspree.io/f/xoqpgyge' dateFormat = '02 January 2006' + defaultDescription = 'Personal website of Hazem Krimi' + defaultKeywords = 'Hazem Krimi, Software Engineer, Software Developer, Full Stack Developer, JavaScript, TypeScript, React, Node.js, Scala, Kotlin, Corda, SQL, GraphQL, MongoDB' [params.author] email = 'me@hazemkrimi.tech' name = 'Hazem Krimi' diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4815bc7..d9b8884 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,10 +17,28 @@ + + + + + + + {{ block "meta" . }}{{ end }} + {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} + {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} {{ end }} - + + @@ -40,6 +58,7 @@ + {{ block "scripts" . }}{{ end }} {{ partial "header.html" . }} diff --git a/layouts/index.html b/layouts/index.html index b327fe6..9cc9f9c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -28,7 +28,7 @@

Projects

- View more + View all projects

These are all the projects I worked on personally and professionally.

@@ -43,7 +43,7 @@

Blog

- View more + View all blog posts

These are articles about things I learned about software engineering.

diff --git a/layouts/partials/about-card.html b/layouts/partials/about-card.html index 8e75596..6417100 100644 --- a/layouts/partials/about-card.html +++ b/layouts/partials/about-card.html @@ -17,7 +17,7 @@ Download CV - Read more + Read more about me diff --git a/layouts/partials/card.html b/layouts/partials/card.html index 1559a28..a27ddec 100644 --- a/layouts/partials/card.html +++ b/layouts/partials/card.html @@ -7,7 +7,11 @@

{{ .Params.description }}