From 7bc63d2b0e683e89dd1c381075f6c33ed6ba637e Mon Sep 17 00:00:00 2001
From: Nouri-Alnahawi <nouri.alnahaiw@h-da.de>
Date: Sun, 9 May 2021 18:32:15 +0200
Subject: [PATCH] add impress to footer

---
 config.toml                  |  4 ++++
 layouts/partials/footer.html | 23 ++++++++---------------
 2 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/config.toml b/config.toml
index 04578d0..0d47be3 100644
--- a/config.toml
+++ b/config.toml
@@ -93,6 +93,10 @@ footer_about_disable = false
   image_url = "http://www.freepik.com"
   text = "Background Image Designed by Freepik"
 
+[params.links.impress]
+  url = "https://fbi.h-da.de/en/index.php?id=15"
+  text = "Impress"
+
 [outputFormats]
 [outputFormats.PRINT]
 baseName = "index"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index f45d322..66ae792 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -17,17 +17,14 @@
         {{ end }}
       </div>
       <div class="col-12 col-sm-4 text-center py-2 order-sm-2">
-        <small>
-        {{ with $links }}
-        {{ with index . "image"}}
-        {{ template "footer-center-block" .}}
-        {{ end }}
-        {{ end }}
-        </small>
-        {{ with .Site.Params.copyright }}<p class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</p>{{ end }}
-	{{ if not .Site.Params.ui.footer_about_disable }}
-		<!-- {{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }} -->
-	{{ end }}
+        {{ with $links }} {{ with index . "image"}}<small><a class="text-white" href="{{ .image_url }}">{{ .text }}</a></small>{{ end }}{{ end }}
+        <p class="text-white">
+        {{ with .Site.Params.copyright }}&copy; {{ now.Year}} {{ .}}{{ end }} <br/>
+        {{ with $links }}{{ with index . "impress"}}<a class="text-white" href="{{ .url }}">{{ .text }}</a>{{ end }}{{ end }}
+        </p>
+	<!-- {{ if not .Site.Params.ui.footer_about_disable }}
+		 {{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
+	{{ end }} -->
       </div>
     </div>
   </div>
@@ -44,7 +41,3 @@
   {{ end }}
 </ul>
 {{ end }}
-
-{{ define "footer-center-block" }}
-    <a class="text-white" href="{{ .image_url }}">{{ .text }}</a>
-{{ end }}
-- 
GitLab