diff --git a/_data/messages.yml b/_data/messages.yml new file mode 100644 index 000000000..642a7ac55 --- /dev/null +++ b/_data/messages.yml @@ -0,0 +1 @@ +scam-banner: "**⚠️ Beware of Scams**: since Feb 2024, scammers are using [fake Scala websites to sell courses](https://www.scala-lang.org/blog/2024/03/01/fake-scala-courses.html), please check you are using an official source." diff --git a/_includes/alert-banner-inner.html b/_includes/alert-banner-inner.html new file mode 100644 index 000000000..135cf0bda --- /dev/null +++ b/_includes/alert-banner-inner.html @@ -0,0 +1,6 @@ +{% comment %}use the variable 'message' to include markdown text to display in the alert.{% endcomment %} + +
+

{{include.message|markdownify}}

+ +
diff --git a/_includes/alert-banner.html b/_includes/alert-banner.html new file mode 100644 index 000000000..7e25ff90d --- /dev/null +++ b/_includes/alert-banner.html @@ -0,0 +1,5 @@ +{% comment %}use the variable 'message' to include markdown text to display in the alert.{% endcomment %} + + diff --git a/_includes/navbar-inner.html b/_includes/navbar-inner.html index 879d6d391..771018af3 100644 --- a/_includes/navbar-inner.html +++ b/_includes/navbar-inner.html @@ -1,4 +1,5 @@