diff --git a/config.toml b/config.toml index 3e8887a4..19c777d5 100644 --- a/config.toml +++ b/config.toml @@ -105,5 +105,8 @@ baseURL = 'https://cedille.etsmtl.ca' icon = "fa-brands fa-linkedin" url = "https://www.linkedin.com/company/cedille/about/" weight = 4 - + [[params.footer.social]] + icon = "fa-brands fa-discord" + url = "https://discord.gg/RAhFnbs3" + weight = 5 diff --git a/themes/cedille/layouts/_default/baseof.html b/themes/cedille/layouts/_default/baseof.html index 24d23009..4b32c4fc 100644 --- a/themes/cedille/layouts/_default/baseof.html +++ b/themes/cedille/layouts/_default/baseof.html @@ -3,6 +3,7 @@ {{- partial "head.html" . -}}
+ {{ partial "notification.html" . }} {{- partial "header.html" . -}}
{{- block "main" . }}{{- end }} @@ -11,5 +12,6 @@
+ diff --git a/themes/cedille/layouts/partials/notification.html b/themes/cedille/layouts/partials/notification.html new file mode 100644 index 00000000..3d9f18e4 --- /dev/null +++ b/themes/cedille/layouts/partials/notification.html @@ -0,0 +1,23 @@ +
+
+
+
+
+

🛑 Attention : Temporairement, nous n'acceptons plus de nouvelles demandes pour développer des sites web pour d'autres clubs. Nous assurons uniquement l'hébergement. Pour toute question, rejoignez-nous sur Discord.

+
+
+

x

+
+
+
+
+ + \ No newline at end of file diff --git a/themes/cedille/static/js/main.js b/themes/cedille/static/js/main.js index c7d81f28..99a80913 100644 --- a/themes/cedille/static/js/main.js +++ b/themes/cedille/static/js/main.js @@ -1,24 +1,2 @@ -// //Javascript to enable link to tab -// var hash = location.hash.replace(/^#/, ''); // ^ means starting, meaning only match the first hash -// if (hash) { -// $('a[href="#' + hash + '"]').tab('show'); -// } -// // Change hash for page-reload -// $('.nav-link').on('shown.bs.tab', function (e) { -// window.location.hash = e.target.hash; -// }) - -// function test() { -// var url = document.location.toString(); -// if (url.match('#')) { -// $('a[href="#' + url.split('#')[1] + '"]').tab('show'); -// console.log(url); -// } - -// // Change hash for page-reload -// $('a').on('shown.bs.tab', function (e) { -// window.location.hash = e.target.hash; -// }) -// }