Make homepage more compliant with ASF recommendations
Fix few issues pointed by whimsy.apache.org/site/project/mynewt.
diff --git a/custom-theme/css/custom.css b/custom-theme/css/custom.css
index b673f3b..4d6f8bd 100644
--- a/custom-theme/css/custom.css
+++ b/custom-theme/css/custom.css
@@ -474,3 +474,15 @@
.fa-github, .icon-github:before {
content: "";
}
+
+.button-footer-asf {
+ background-color: transparent;
+ border-radius: 5px;
+ border: 1px solid grey;
+ color: black;
+ padding: 2px 20px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ font-size: 12px;
+}
diff --git a/custom-theme/footer.html b/custom-theme/footer.html
index 0c00d88..498b045 100644
--- a/custom-theme/footer.html
+++ b/custom-theme/footer.html
@@ -6,15 +6,45 @@
</div>
<div class="col-xs-12">
<div class="logos">
- <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
- <small class="footnote">
- Apache Mynewt, Mynewt, Apache, the Apache feather logo, and the Apache Mynewt
- project logo are either registered trademarks or trademarks of the Apache
- Software Foundation in the United States and other countries.
- </small>
+ <a href="https://www.apache.org/">
+ <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
+ </a>
+ <p>
+ Copyright © 2015-2021 The Apache Software Foundation.<br>
+ <small class="footnote">
+ Apache Mynewt, Mynewt, Apache, the Apache feather logo, and the Apache Mynewt
+ project logo are either registered trademarks or trademarks of the Apache
+ Software Foundation in the United States and other countries.
+ </small>
+ </p>
<a href="{{ config.extra.slack_url }}">
<img src="https://www.countit.com/images/add_to_slack.png" alt="Slack Icon" title="Join our Slack Community" />
</a>
</div>
</div>
+ <a href="https://www.apache.org/licenses/">
+ <button class="button-footer-asf">
+ License
+ </button>
+ </a>
+ <a href="https://www.apache.org/foundation/sponsorship.html">
+ <button class="button-footer-asf">
+ Sponsorship
+ </button>
+ </a>
+ <a href="https://www.apache.org/foundation/thanks.html">
+ <button class="button-footer-asf">
+ Thanks
+ </button>
+ </a>
+ <a href="https://www.apache.org/security/">
+ <button class="button-footer-asf">
+ Security
+ </button>
+ </a>
+ <a href="https://apache.org/events/current-event">
+ <button class="button-footer-asf">
+ ASF Events
+ </button>
+ </a>
</footer>
diff --git a/custom-theme/main.html b/custom-theme/main.html
index c685c3b..0de4ec5 100644
--- a/custom-theme/main.html
+++ b/custom-theme/main.html
@@ -62,7 +62,7 @@
{% include "nav.html" %}
- {% set full_width_page_titles = [None, 'Quick Start', 'About', 'Talks', 'Documentation', 'Download', 'Community', 'Events'] %}
+ {% set full_width_page_titles = [None, 'Home', 'Quick Start', 'About', 'Talks', 'Documentation', 'Download', 'Community', 'Events'] %}
<div class="container">
{% if page.title == 'Home' %}