Merge pull request #179 from pmarsceill/content-footer

Content footer
This commit is contained in:
Patrick Marsceill 2019-08-14 10:55:28 -04:00 committed by GitHub
commit c4586e1725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 9 deletions

View File

@ -29,6 +29,9 @@ aux_links:
"Just the Docs on GitHub":
- "//github.com/pmarsceill/just-the-docs"
# Footer content appears at the bottom of every page's main content
footer_content: "Copyright &copy; 2017-2019 Patrick Marsceill. Distributed by an <a href=\"https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt\">MIT license.</a>"
# Color scheme currently only supports "dark" or nil (default)
color_scheme: nil
@ -37,4 +40,4 @@ color_scheme: nil
ga_tracking: UA-2709176-10
plugins:
- jekyll-seo-tag
- jekyll-seo-tag

View File

@ -8,12 +8,14 @@
<div class="side-bar">
<a href="{{ site.baseurl }}/" class="site-title fs-6 lh-tight">{{ site.title }}</a>
<span class="fs-3"><button class="js-main-nav-trigger navigation-list-toggle btn btn-outline" type="button" data-text-toggle="Hide">Menu</button></span>
<div class="navigation main-nav js-main-nav">
{% include nav.html %}
</div>
<footer role="contentinfo" class="site-footer">
<p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
</footer>
<nav role="navigation" aria-label="Main navigation" class="navigation-wrapper">
<div class="navigation main-nav js-main-nav">
{% include nav.html %}
</div>
<footer class="site-footer">
<p class="text-small text-grey-dk-000 mb-4">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
</footer>
</nav>
</div>
<div class="main-content-wrap js-main-content" tabindex="0">
<div class="page-header">
@ -69,6 +71,13 @@
{% endfor %}
</ul>
{% endif %}
{% if site.footer_content != nil %}
<hr>
<footer role="contentinfo">
<p class="text-small text-grey-dk-000 mb-0">{{ site.footer_content }}</p>
</footer>
{% endif %}
</div>
</div>
</div>

View File

@ -137,6 +137,7 @@ body {
.site-footer {
position: absolute;
bottom: 0;
left: 0;
padding-top: $sp-4;
padding-bottom: $sp-4;

View File

@ -19,6 +19,12 @@
}
}
.navigation-wrapper {
display: flex;
flex-direction: column;
flex: 1 1 auto;
}
.navigation-list {
padding: 0;
margin-top: $sp-4;

View File

@ -38,6 +38,13 @@ aux_links:
- "//github.com/pmarsceill/just-the-docs"
```
## Footer content
```yaml
# Footer content appears at the bottom of every page's main content
footer_content: "Copyright &copy; 2017-2019 Patrick Marsceill. Distributed by an <a href=\"https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt\">MIT license.</a>"
```
## Color scheme
```yaml

View File

@ -69,5 +69,3 @@ $link-color: $blue-000;
```
_Note:_ Editing the variables directly in `_sass/support/variables.scss` is not recommended and can cause other dependencies to fail.
---