implement copyright modal

This commit is contained in:
Michi 2025-04-05 21:02:17 +02:00
parent de30887234
commit e39b216212
10 changed files with 155 additions and 3 deletions

View file

@ -19,5 +19,7 @@
{{ partial "contact.html" . }}
</div>
{{ partial "copyright-modal.html" . }}
{{ partial "scrollTop.html" . }}
{{ partial "footer.html" . }}

View file

@ -0,0 +1,11 @@
<div class="copyright modal hidden">
{{ with .Site.GetPage "copyright" }}
<div class="modal-bar">
<h1>{{ .Title }}</h1>
<button class="close-modal-btn" alt='{{ T "close" }}' title='{{ T "close" }}' name='{{ T "close" }}'><i class='{{ .Params.close_icon }}'></i></button>
</div>
<div class="modal-content">
{{ .Content }}
</div>
{{ end }}
</div>

View file

@ -2,6 +2,9 @@
<div class="footer-part">
<p>&#169; {{ dateFormat "2006" now }}</p>
<a href="{{ .Site.Params.legalLink }}" alt='{{ T "legal" }}' title='{{ T "legal" }}'>{{ T "legal" }}</a>
{{ with .Site.GetPage "copyright" }}
<a class="copyright-modal-link" href='#{{ .Params.slug }}' alt='{{ .Title }}' title='{{ .Title }}'>{{ .Title }}</a>
{{ end }}
<div class="sm-icons">
{{ range .Site.Data.socialmedia }}
{{ if .footer }}

View file

@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="UTF-8">
<title>{{ .Site.Params.Title }}</title>
<meta name="mobile-web-app-title" content="{{ .Site.Params.Title }}">
<meta name="apple-mobile-web-app-title" content="{{ .Site.Params.Title }}">
<meta charset="UTF-8">
<link id="favicon" rel="icon" type="image/png" href="{{ .Site.Params.faviconPath | relURL }}">
<link rel="icon" type="image/svg+xml" href="{{ .Site.Params.faviconPathSVG | relURL }}">
<link rel="shortcut icon" type="image/png" href="{{ .Site.Params.faviconPath | relURL }}">