Improve SEO

This commit is contained in:
Hazem Krimi
2023-11-22 19:03:03 +01:00
parent e05564729d
commit 077c4fe728
5 changed files with 31 additions and 6 deletions
+5 -1
View File
@@ -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">