mirror of
https://github.com/jgthms/bulma
synced 2026-03-18 11:24:29 -07:00
Add footer links
This commit is contained in:
70
docs/_includes/footer/links.html
Normal file
70
docs/_includes/footer/links.html
Normal file
@@ -0,0 +1,70 @@
|
||||
{% assign blog_link = site.data.links.by_id['blog'] %}
|
||||
{% assign documentation_link = site.data.links.by_id['documentation'] %}
|
||||
{% assign more_link = site.data.links.by_id['more'] %}
|
||||
|
||||
<div class="bd-footer-links">
|
||||
<div class="columns">
|
||||
<div class="column is-3">
|
||||
<p class="bd-footer-link-title">
|
||||
<a href="{{ site.url }}">Home</a>
|
||||
</p>
|
||||
|
||||
<p class="bd-footer-link-title">
|
||||
<a href="{{ site.url }}{{ blog_link.path }}">Blog</a>
|
||||
</p>
|
||||
|
||||
{% for post in site.posts | limit: 4 %}
|
||||
<p class="bd-footer-link">
|
||||
<a href="{{ post.url }}">
|
||||
{{ post.name }}
|
||||
</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
|
||||
<p class="bd-footer-link bd-is-more">
|
||||
<a href="{{ site.url }}{{ blog_link.path }}">
|
||||
View all posts
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="column is-3">
|
||||
<p class="bd-footer-link-title">
|
||||
<a href="{{ site.url }}{{ documentation_link.path }}">Documentation</a>
|
||||
</p>
|
||||
|
||||
{% for category in site.data.links.categories %}
|
||||
{% assign category_id = category[0] %}
|
||||
{% assign category_link = site.data.links.by_id[category_id] %}
|
||||
|
||||
<p class="bd-footer-link">
|
||||
<a href="{{ site.url }}{{ category_link.path }}">
|
||||
{{ category_link.name }}
|
||||
</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="column is-6">
|
||||
<p class="bd-footer-link-title">
|
||||
<a href="{{ site.url }}{{ more_link.path }}">More</a>
|
||||
</p>
|
||||
|
||||
{% for link_id in site.data.links.more %}
|
||||
{% assign link = site.data.links.by_id[link_id] %}
|
||||
|
||||
<p class="bd-footer-link bd-has-subtitle">
|
||||
<a href="{{ site.url }}{{ link.path }}">
|
||||
<span>
|
||||
{{ link.name }}
|
||||
</span>
|
||||
<em>
|
||||
{{ link.subtitle }}
|
||||
</em>
|
||||
</a>
|
||||
</p>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
18
docs/_includes/footer/main.html
Normal file
18
docs/_includes/footer/main.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column is-4">
|
||||
{% include footer/about.html %}
|
||||
</div>
|
||||
<div class="column is-4">
|
||||
{% include footer/contribute.html %}
|
||||
</div>
|
||||
<div class="column is-4">
|
||||
{% include footer/share.html %}
|
||||
</div>
|
||||
</div>
|
||||
{% include footer/support.html %}
|
||||
{% include footer/boxes.html %}
|
||||
{% include footer/links.html %}
|
||||
</div>
|
||||
</footer>
|
||||
@@ -8,15 +8,7 @@
|
||||
|
||||
{% include global/newsletter.html %}
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column is-4">
|
||||
{% include footer/about.html %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{% include footer/main.html %}
|
||||
|
||||
{% include book/book-modal.html %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user