summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2024-05-11 22:13:47 +0200
committerFrancesco <tomaselli.fr@gmail.com>2024-05-11 22:13:47 +0200
commitedd49a893c5f581a2f622f2b29a289760bbc2edc (patch)
tree320c58776b5c04db7adf188d065f135aa28a8f83 /layouts/_default
parent769239a8e95cf761075a1248818a6578d7522fac (diff)
Format
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html44
-rw-r--r--layouts/_default/home.html3
2 files changed, 23 insertions, 24 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index a116c36..9b63b69 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -2,36 +2,35 @@
<html lang="{{ or site.Language.LanguageCode site.Language.Lang }}"
dir="{{ or site.Language.LanguageDirection `ltr` }}">
-<head>
- {{ partial "head.html" . }}
-</head>
+ <head>
+ {{ partial "head.html" . }}
+ </head>
-{{ $theme := "auto"}}
+ {{ $theme := "auto"}}
-{{ with .Param "theme" }}
-{{ $theme = .}}
-{{ end }}
+ {{ with .Param "theme" }}
+ {{ $theme = .}}
+ {{ end }}
-<body class="{{ $theme }}">
+ <body class="{{ $theme }}">
- <div class="content">
- <header>
- {{ partial "header.html" . }}
- </header>
+ <div class="content">
+ <header>
+ {{ partial "header.html" . }}
+ </header>
- <main class="main">
- {{ block "main" . }}{{ end }}
- </main>
- </div>
+ <main class="main">
+ {{ block "main" . }}{{ end }}
+ </main>
+ </div>
- <footer>
- {{ partial "footer.html" . }}
- </footer>
+ <footer>
+ {{ partial "footer.html" . }}
+ </footer>
-</body>
+ </body>
-
-<script>
+ <script>
function isAuto() {
return document.body.classList.contains("auto");
@@ -70,5 +69,4 @@
</script>
-
</html> \ No newline at end of file
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
index e251ce3..5273fa0 100644
--- a/layouts/_default/home.html
+++ b/layouts/_default/home.html
@@ -21,7 +21,8 @@
{{ with site.Params.social }}
<div class="social-icons">
{{- range . }}
- <a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me"
+ <a href="{{ trim .url " " | safeURL }}" target="_blank"
+ rel="noopener noreferrer me"
title="{{ (.title | default .name) | title }}">
{{ partial "svg.html" . }}
</a>