Add news page for main instance
Change-Id: Ie97fba26dbe3708a9437a6646943e3ac8b9ee05c
diff --git a/kalamar.ids-mannheim.conf b/kalamar.ids-mannheim.conf
index 461f2f4..3b476d8 100644
--- a/kalamar.ids-mannheim.conf
+++ b/kalamar.ids-mannheim.conf
@@ -35,6 +35,10 @@
"title" => "Privacy",
"id" => "privacy"
},
+ {
+ "title" => "News",
+ "id" => "news"
+ },
],
},
CSP => {
@@ -84,6 +88,10 @@
position => 70
},
{
+ inline => '<%= link_to loc("news") => "doc/news" %>',
+ position => 72
+ },
+ {
inline => '<%= link_to loc("howToCite") => url_for(doc => { page => "faq" })->fragment("howToCite") %>',
position => 75
},
diff --git a/templates/custom/doc/news.html.ep b/templates/custom/doc/news.html.ep
new file mode 100644
index 0000000..de94d39
--- /dev/null
+++ b/templates/custom/doc/news.html.ep
@@ -0,0 +1,5 @@
+% layout 'main', title => 'KorAP: ' . $c->loc('news');
+
+<h2 id="tutorial-top"><%= loc 'news' %></h2>
+
+%= include 'announcement', lang => $c->localize->preference