mirror of
https://github.com/michivonah/website-v3.git
synced 2025-12-22 21:36:28 +01:00
implement copyright modal
This commit is contained in:
parent
de30887234
commit
e39b216212
10 changed files with 155 additions and 3 deletions
|
|
@ -19,5 +19,7 @@
|
|||
{{ partial "contact.html" . }}
|
||||
</div>
|
||||
|
||||
{{ partial "copyright-modal.html" . }}
|
||||
|
||||
{{ partial "scrollTop.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
11
layouts/partials/copyright-modal.html
Normal file
11
layouts/partials/copyright-modal.html
Normal 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>
|
||||
|
|
@ -2,6 +2,9 @@
|
|||
<div class="footer-part">
|
||||
<p>© {{ 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 }}
|
||||
|
|
|
|||
|
|
@ -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 }}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue