Signed-off-by: Daniel Jr <dan@danielmrcl.dev>
rss = false
tocInline = true
logo = "image.jpg"
+ favicon = "favicon.ico"
description = "Since 2021, I've been developing Java 8+ applications using Spring and PostgreSQL in a microservices architecture for critical, efficient and scalable systems. With a focus on code quality, architecture and scalability, I have strong foundation of programming, design and architecture. I am passionate about programming and constantly learn new technologies and paradigms."
mainSection = "posts"
postsOnHomePage = 5
-<!-- TODO -->
-<link rel="icon" type="image/png" href="{{ "images/favicon.ico" | absURL }}" />
+{{ if (isset .Site.Params "favicon") }}
+ {{ .Scratch.Set "favicon_path" .Site.Params.favicon }}
+{{ else }}
+ {{ .Scratch.Set "favicon_path" "images/favicon.ico" }}
+{{ end }}
+
+{{ $favicon_path := .Scratch.Get "favicon_path" }}
+<link rel="icon" type="image/png" href="{{ $favicon_path }}" />