mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Improve SEO
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -17,10 +17,28 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#BD1839" />
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.defaultDescription }}{{ end }}"
|
||||
>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="{{ if .Params.keywords }}{{ .Params.keywords }}{{ else }}{{ .Site.Params.defaultKeywords }}{{ end }}"
|
||||
>
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta property="og:title" content="{{ .Page.Title }}">
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.defaultDescription }}{{ end }}"
|
||||
>
|
||||
<meta property="og:url" content="{{ .Page.Permalink }}">
|
||||
{{ block "meta" . }}{{ end }}
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<link rel="canonical" href="{{ .Page.Permalink }}">
|
||||
<link rel="icon" sizes="192x192" href="{{ $androidChromeIcon.Permalink }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ $appleTouchIcon.Permalink }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ $favIcon32.Permalink }}">
|
||||
@@ -40,6 +58,7 @@
|
||||
<script defer src="{{ $baseScripts.Permalink }}"></script>
|
||||
<script defer src="{{ $mobileNavigationScripts.Permalink }}"></script>
|
||||
<script defer src="{{ $contactFormScripts.Permalink }}"></script>
|
||||
{{ block "scripts" . }}{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
+2
-2
@@ -28,7 +28,7 @@
|
||||
<div>
|
||||
<h2>Projects</h2>
|
||||
<a class="read-more" href="{{ urls.JoinPath .Site.BaseURL "projects" }}">
|
||||
View more
|
||||
View all projects
|
||||
</a>
|
||||
</div>
|
||||
<p>These are all the projects I worked on personally and professionally.</p>
|
||||
@@ -43,7 +43,7 @@
|
||||
<div>
|
||||
<h2>Blog</h2>
|
||||
<a class="read-more" href="{{ urls.JoinPath .Site.BaseURL "blog" }}">
|
||||
View more
|
||||
View all blog posts
|
||||
</a>
|
||||
</div>
|
||||
<p>These are articles about things I learned about software engineering.</p>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
Download CV
|
||||
</a>
|
||||
<a class="read-more" href="{{ urls.JoinPath .Site.BaseURL "about" }}">
|
||||
Read more
|
||||
Read more about me
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
<p>{{ .Params.description }}</p>
|
||||
<div id="links">
|
||||
<a class="read-more" href="{{ .Permalink }}">
|
||||
Read more {{ readFile "assets/icons/arrow.svg" | safeHTML }}
|
||||
{{ if (.InSection ($.Site.GetPage "projects")) }}
|
||||
Read this project {{ readFile "assets/icons/arrow.svg" | safeHTML }}
|
||||
{{ else }}
|
||||
Read this blog post {{ readFile "assets/icons/arrow.svg" | safeHTML }}
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ with (and (.InSection ($.Site.GetPage "projects")) .Params.demo) }}
|
||||
<a class="demo" href="{{ . }}" target="_blank">
|
||||
|
||||
Reference in New Issue
Block a user