Add footer menu
This commit is contained in:
parent
f839687b04
commit
63aea4f10c
|
@ -1,7 +1,38 @@
|
|||
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: /
|
||||
|
@ -14,3 +45,12 @@ menus:
|
|||
- 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%'
|
||||
|
|
|
@ -6,12 +6,14 @@
|
|||
|
||||
{% include 'navbar' %}
|
||||
|
||||
<div class="py-16">
|
||||
<div id="main-content" class="max-w-2xl px-4 mx-auto">
|
||||
<div class="max-w-2xl px-4 py-16 mx-auto">
|
||||
<div id="main-content">
|
||||
{% block content_wrapper %}
|
||||
{% block content %}{% endblock %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% include 'footer' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
7
source/_partials/footer.html.twig
Normal file
7
source/_partials/footer.html.twig
Normal file
|
@ -0,0 +1,7 @@
|
|||
<footer class="mt-10">
|
||||
<nav>
|
||||
{% for link in site.menus.footer %}
|
||||
<a href="{{ link.href }}">{{ link.title }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</footer>
|
Loading…
Reference in a new issue