From 63aea4f10c2b6da1264433fa718bd37b17e20ded Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 30 Jun 2021 08:00:00 +0100 Subject: [PATCH] Add footer menu --- app/config/sculpin_site.yml | 58 ++++++++++++++++++++++++++----- source/_layouts/default.html.twig | 6 ++-- source/_partials/footer.html.twig | 7 ++++ 3 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 source/_partials/footer.html.twig diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index bebed8d2..e5611a7e 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -1,16 +1,56 @@ name: Oliver Davies locale: en-GB +drupalorg: + name: opdavies + url: 'https://www.drupal.org/u/%drupalorg.name%' + +github: + name: opdavies + url: 'https://github.com/%github.name%' + menus: + footer: + - title: Uses + href: /uses + + - title: Speaker information + href: /speaker-information + + - title: Drupal.org + href: '%drupalorg.url%' + is_active: false + + - title: GitHub + href: '%github.url%' + is_active: false + + - title: Twitter + href: '%twitter.url%' + is_active: false + + - title: YouTube + href: '%youtube.url%' + is_active: false + main: - - title: About - href: / - is_active: '^//$' + - title: About + href: / + is_active: '^//$' - - title: Blog - href: /blog - is_active: '^/blog/?' + - title: Blog + href: /blog + is_active: '^/blog/?' - - title: Talks - href: /talks - is_active: '^/talks/?' + - title: Talks + href: /talks + is_active: '^/talks/?' + +twitter: + name: opdavies + url: 'https://twitter.com/%twitter.name%' + +youtube: + channel: + id: UCkeK0qF9HHUPQH_fvn4ghqQ + url: 'https://www.youtube.com/channel/%youtube.channel.id%' diff --git a/source/_layouts/default.html.twig b/source/_layouts/default.html.twig index 60521c85..559484dd 100644 --- a/source/_layouts/default.html.twig +++ b/source/_layouts/default.html.twig @@ -6,12 +6,14 @@ {% include 'navbar' %} -
-
+
+
{% block content_wrapper %} {% block content %}{% endblock %} {% endblock %}
+ + {% include 'footer' %}
{% endblock %} diff --git a/source/_partials/footer.html.twig b/source/_partials/footer.html.twig new file mode 100644 index 00000000..b28b9520 --- /dev/null +++ b/source/_partials/footer.html.twig @@ -0,0 +1,7 @@ +