From 8b6d0da60c4e4ff93c414533a26854d5728b3751 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 29 May 2018 14:36:48 +0200
Subject: [PATCH] [web] Added imprint.

---
 web/content/imprint.md                      | 51 +++++++++++++++++++++
 web/layouts/_default/single.html            |  8 ++--
 web/layouts/partials/footer.html            |  1 +
 web/layouts/partials/global-footer-nav.html |  8 ++++
 web/layouts/shortcodes/year.html            |  1 +
 5 files changed, 65 insertions(+), 4 deletions(-)
 create mode 100644 web/content/imprint.md
 create mode 100644 web/layouts/partials/global-footer-nav.html
 create mode 100644 web/layouts/shortcodes/year.html

diff --git a/web/content/imprint.md b/web/content/imprint.md
new file mode 100644
index 00000000000..879ae74d1dc
--- /dev/null
+++ b/web/content/imprint.md
@@ -0,0 +1,51 @@
++++
+title = "Legal statements"
+author = "Lars Bilke"
+date = "2018-05-29"
++++
+
+## Privacy policy {#pp}
+
+This web site **does not** collect, store or process any user data. It **does not** use web analytics or cookies and even web server logs are fully anonymous.
+
+## Copyright and License
+
+Unless otherwise stated, the contents of this website are copyright © 2012-{{< year >}} by the OpenGeoSys developers. Notable exceptions include:
+
+- Research papers, where you should contact the authors for relevant information.
+- Packaged software releases (zip-files, tarballs), where the packages include information about the copyright holders and license of the downloaded software.
+
+Note that this list does not claim to be complete. Moreover, this website contains resources from a number of [third-party projects](#third-party), which belong to the authors of those external projects and are covered by the respective upstream licenses.
+
+All information under the default copyright is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/). Moreover, all source code that appears under this copyright is additionally licensed under the following license (the Unlicense):
+
+### Source code
+
+The source code of this website is available at https://github.com/ufz/ogs/tree/master/web. Please take a look at the repository if you want to know the exact list of copyright holders.
+
+### Third-party
+
+This website uses a number of external projects:
+
+- [Hugo](https://gohugo.io/) static website generator together with [Pandoc](https://pandoc.org).
+- [jQuery](https://jquery.org/) JavaScript library, distributed under the [jQuery License](https://jquery.org/license/).
+- [TailwindCSS](https://tailwindcss.com) framework, distributed under the [MIT License](https://github.com/tailwindcss/tailwindcss/blob/master/LICENSE).
+- [Font Awesome](https://fontawesome.com), distributed under the [SIL Open Font License 1.1](https://scripts.sil.org/OFL) and the [MIT License](https://opensource.org/licenses/MIT).
+- [Roboto font](https://fonts.google.com/specimen/Roboto) and [Open Sans font](https://fonts.google.com/specimen/Open+Sans), both distributed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
+- [Slick Carousel](http://kenwheeler.github.io/slick) JavaScript library, distributed under the [MIT license](https://github.com/kenwheeler/slick/blob/master/LICENSE).
+- [Fancybox](https://fancyapps.com/fancybox/3/) JavaScript library, distributed under the [GPLv3 license](http://choosealicense.com/licenses/gpl-3.0).
+- [MathJax](https://www.mathjax.org) JavaScript library, distributed under the [Apache License 2.0](https://github.com/mathjax/MathJax/blob/master/LICENSE).
+
+## Contact us
+
+In case of questions about the website or any of its contents, please contact us at info@opengeosys.org.
+
+## Impressum
+
+Verantwortlich für https://opengeosys.org im Sinne des Presserechts:
+
+Prof. Dr. Olaf Kolditz, Helmholtz-Zentrum für Umweltforschung GmbH - UFZ, Permoserstr. 15, 04318 Leipzig.
+
+## Hinweis für Benutzer in Deutschland
+
+Die Autoren der OpenGeoSys-Website übernehmen keinerlei Garantie für die Richtigkeit, Vollständigkeit und Aktualität der bereitgestellten Informationen. Insbesondere übernehmen die Autoren keinerlei Haftung für Inhalte, die als fremde Inhalte gekennzeichnet und sind nicht dafür verantwortlich, dass solche Inhalte vollständig, aktuell, richtig und rechtmässig sind und nicht in unzulässiger Weise in die Rechte Dritter eingreifen. Dies gilt insbesondere auch für externe Webseiten, auf die durch einen Link verwiesen wird.
diff --git a/web/layouts/_default/single.html b/web/layouts/_default/single.html
index 70105692e0d..6180afb73ec 100644
--- a/web/layouts/_default/single.html
+++ b/web/layouts/_default/single.html
@@ -1,6 +1,6 @@
 {{ define "main" }}
-
-  <h1>{{ .Title }}</h1>
-  {{ .Content }}
-
+  <div class="container">
+    <h1>{{ .Title }}</h1>
+    {{ .Content }}
+  </div>
 {{ end }}
diff --git a/web/layouts/partials/footer.html b/web/layouts/partials/footer.html
index 7dbaf6ec130..f11e02f5533 100644
--- a/web/layouts/partials/footer.html
+++ b/web/layouts/partials/footer.html
@@ -1,3 +1,4 @@
+  {{ partial "global-footer-nav.html" . }}
   </div> <!-- container -->
   <script src="/bundle.js"></script>
 </body>
diff --git a/web/layouts/partials/global-footer-nav.html b/web/layouts/partials/global-footer-nav.html
new file mode 100644
index 00000000000..94a6b28023b
--- /dev/null
+++ b/web/layouts/partials/global-footer-nav.html
@@ -0,0 +1,8 @@
+<div class="mt-4 text-center text-sm">
+    <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
+      <img class="align-middle" alt="Creative Commons License" style="border-width:0"
+        src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" />
+      </a>
+      |
+  <a href="/imprint">Privacy policy / Legal statements / Impressum</a>
+</div>
diff --git a/web/layouts/shortcodes/year.html b/web/layouts/shortcodes/year.html
new file mode 100644
index 00000000000..6b40db59f4c
--- /dev/null
+++ b/web/layouts/shortcodes/year.html
@@ -0,0 +1 @@
+{{ now.Format "2006" }}
-- 
GitLab