Front page work

This commit is contained in:
2025-11-01 12:28:20 +01:00
parent 10e1b207b0
commit 416deaa772
14 changed files with 176 additions and 180 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
<script>
document.addEventListener("DOMContentLoaded", function () {
const text = "{{ .Title }}"; // dynamically type the page title
const text = "{{ .Site.Params.Greeting }}";
const element = document.getElementById("typedText");
let index = 0;
@@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (index < text.length) {
element.textContent += text.charAt(index);
index++;
setTimeout(type, 120); // typing speed in ms
setTimeout(type, 120);
}
}
+10 -4
View File
@@ -1,8 +1,14 @@
{{ define "main" }}
{{ with .Site.GetPage "page" "home" }}
{{ .Content }}
{{ partial "typed.html" . }}
{{ end }}
{{ partial "typed.html" . }}
<div class="landing-welcome">
<h1 id="typedText"></h1>
<div class="landing-links">
{{ range .Site.Params.socials }}
<a href="{{ .url }}" target="_blank">{{ .name }}</a>
{{ end }}
</div>
</div>
{{ end }}