Add a disclaimer in the footer of each page. (#312)
* Add a disclaimer in the footer of each page. * Fix CSS + Add translations Signed-off-by: hossainemruz <hossainemruz@gmail.com> Co-authored-by: Thorsten Alteholz <thorsten@alteholz.de> Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
parent
1fc66aae56
commit
5798312a92
17 changed files with 61 additions and 4 deletions
|
@ -106,3 +106,6 @@ other = "সার্টিফিকেট দেখুন"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "নোট সমূহ"
|
other = "নোট সমূহ"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "দায় বিজ্ঞপ্তি"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "查看证书"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "笔记"
|
other = "笔记"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "责任通知"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Bekijk certificaat"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Opmerkingen"
|
other = "Opmerkingen"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Haftungshinweis"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "View Certificate"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Notes"
|
other = "Notes"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Liability Notice"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Ver Certificado"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Notas"
|
other = "Notas"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Aviso de responsabilidad"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Afficher le certificat"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Remarques"
|
other = "Remarques"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Avis de responsabilité"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "प्रमाणपत्र देखें"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "टिप्पणियाँ"
|
other = "टिप्पणियाँ"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "दायित्व सूचना"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Lihat Sertifikat"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Catatan"
|
other = "Catatan"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Pemberitahuan Kewajiban"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Féach ar an Teastas"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Appunti"
|
other = "Appunti"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Avviso di responsabilità"
|
||||||
|
|
|
@ -106,3 +106,6 @@ other = "ビューの証明書"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "ノート"
|
other = "ノート"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "責任通知"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "인증서보기"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "메모"
|
other = "메모"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "책임 고지"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Просмотреть сертификат"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Ноты"
|
other = "Ноты"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Уведомление об ответственности"
|
||||||
|
|
|
@ -109,3 +109,6 @@ other = "Xem chứng chỉ"
|
||||||
|
|
||||||
[notes]
|
[notes]
|
||||||
other = "Ghi chú"
|
other = "Ghi chú"
|
||||||
|
|
||||||
|
[disclaimer_text]
|
||||||
|
other = "Thông báo trách nhiệm"
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
|
{{ $contactMeEnabled := site.Params.footer.contactMe.enable | default true }}
|
||||||
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
|
{{ $newsletterEnabled := site.Params.footer.newsletter.enable | default true }}
|
||||||
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
|
{{ $credentialsEnabled := site.Params.footer.credentials.enable | default true }}
|
||||||
|
{{ $disclaimerEnabled := site.Params.footer.disclaimer.enable | default false }}
|
||||||
|
|
||||||
{{/* Keep backward compatibility for the newsletter function */}}
|
{{/* Keep backward compatibility for the newsletter function */}}
|
||||||
{{ if site.Params.newsletter.enable }}
|
{{ if site.Params.newsletter.enable }}
|
||||||
|
@ -29,6 +30,13 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ $disclaimer := "" }}
|
||||||
|
{{ $siteConfig := (index site.Data site.Language.Lang).site }}
|
||||||
|
{{ if $siteConfig.disclaimer }}
|
||||||
|
{{ $disclaimer = $siteConfig.disclaimer }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{/* footer logos */}}
|
{{/* footer logos */}}
|
||||||
{{ $themeLogo := "/images/theme-logo.png" }}
|
{{ $themeLogo := "/images/theme-logo.png" }}
|
||||||
{{ $hugoLogo := "/images/hugo-logo.svg" }}
|
{{ $hugoLogo := "/images/hugo-logo.svg" }}
|
||||||
|
@ -102,6 +110,12 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{ if and $disclaimerEnabled $disclaimer}}
|
||||||
|
<hr />
|
||||||
|
<div class="container">
|
||||||
|
<p id="disclaimer"><strong>{{ i18n "disclaimer_text" }}:</strong> {{ $disclaimer }}</p>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ if $credentialsEnabled }}
|
{{ if $credentialsEnabled }}
|
||||||
<hr />
|
<hr />
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
|
@ -339,6 +339,14 @@ mark {
|
||||||
background-color: #e5e9f2;
|
background-color: #e5e9f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer #disclaimer{
|
||||||
|
color: #8392a5 !important;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
.footer #disclaimer>strong{
|
||||||
|
color: #c0ccda!important;
|
||||||
|
}
|
||||||
|
|
||||||
.footer #theme {
|
.footer #theme {
|
||||||
color: #c0ccda;
|
color: #c0ccda;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,6 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-holder {
|
.toc-holder {
|
||||||
position: -webkit-sticky;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 4.5rem;
|
top: 4.5rem;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
.sidebar-holder {
|
.sidebar-holder {
|
||||||
top: 2.5rem;
|
top: 2.5rem;
|
||||||
position: -webkit-sticky;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
background-color: #f9fafc;
|
background-color: #f9fafc;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
@ -192,7 +191,6 @@ a.focused {
|
||||||
transition: all ease-out 0.3s;
|
transition: all ease-out 0.3s;
|
||||||
}
|
}
|
||||||
.sidebar-holder {
|
.sidebar-holder {
|
||||||
position: -webkit-sticky;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 2.5rem;
|
top: 2.5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -222,7 +220,6 @@ a.focused {
|
||||||
transition: all ease-out 0.3s;
|
transition: all ease-out 0.3s;
|
||||||
}
|
}
|
||||||
.sidebar-holder {
|
.sidebar-holder {
|
||||||
position: -webkit-sticky;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 2.5rem;
|
top: 2.5rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue