From 61c4033dfa19b7020ca55286b356be0fda0efcce Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 22 Dec 2022 23:42:45 +0100 Subject: [PATCH] add support for custom footer links --- app/views/shared/_links.html.haml | 4 ++++ config/justask.yml.example | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/views/shared/_links.html.haml b/app/views/shared/_links.html.haml index 9b6c3ab0..c330142b 100644 --- a/app/views/shared/_links.html.haml +++ b/app/views/shared/_links.html.haml @@ -10,3 +10,7 @@ = link_to t(".terms"), terms_path · = link_to t(".privacy"), privacy_policy_path + - if APP_CONFIG["links"].present? + - APP_CONFIG["links"].each do |link| + · + = link_to link["text"], link["url"] diff --git a/config/justask.yml.example b/config/justask.yml.example index 1b19cff6..023f6b85 100644 --- a/config/justask.yml.example +++ b/config/justask.yml.example @@ -35,6 +35,11 @@ about: | Use this space to describe your Retrospring instance! +# Custom links in the footer +# links: + # - text: "Patreon" + # url: "https://patreon.com/retrospring" + # How many items (questions, answers, ...) do you want to show per page? items_per_page: 10