ltqf/layouts/_default/baseof.html
2024-01-09 15:46:59 +01:00

45 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
{{- partial "head.html" . -}}
<!-- Bloc pour les styles CSS -->
{{ $customCSS := resources.Get "css/style.css" | resources.ToCSS }}
<link rel="stylesheet" href="{{ $customCSS.RelPermalink }}">
{{- block "styles" . }}{{- end }}
</head>
<body>
{{- block "main" . }}
{{ $bg := cond .IsHome "has-background-black has-text-white" "has-background-warning-light has-text-black" }}
<main class="columns is-fullheight is-gapless m-0 has-background-black">
<!-- Barre de navigation -->
{{- partial "navbar.html" . -}}
<!-- Contenu de la page -->
<div class="column m-0 p-0" id="main-col">
<section class="hero is-fullheight">
{{- block "content" . }}{{- end }}
{{ if not .IsHome}}
<div class="is-flex is-flex-direction-column is-justify-content-flex-end" style="position: fixed; bottom: 1%; right: 5%; z-index: 100;">
<a href="#" aria-label="Lien vers le haut de page" class="{{$bg}}" style="position: sticky; bottom: 0; border-radius: 50%;">
<span class="icon">
<i class="fas fa-arrow-up"></i>
</span>
</a>
</div>
{{ end }}
{{ partial "navbarbottom.html" .}}
</section>
</div>
</main>
{{- end }}
<!-- Scripts JS -->
{{- partial "script.html" . -}}
{{- block "scripts" . }}{{- end }}
</body>
</html>