Made footer more configurable
This commit is contained in:
parent
88dbe89784
commit
0b4eecbd33
24
README.md
24
README.md
|
@ -92,6 +92,20 @@ ogimage = "Greenery.png"
|
|||
|
||||
To disable SEO set field `seo` in `extra` to `false`.
|
||||
|
||||
### Footer text
|
||||
|
||||
By default the footer provides links to Zola and Netlify, and a tagline of "Mainted with :hearts for the web".
|
||||
To disable any of those parts, and/or add a custom tagline of your own, the following options are available:
|
||||
|
||||
```toml
|
||||
[extra]
|
||||
|
||||
zola = true
|
||||
netlify = false
|
||||
maintained_with_love = false
|
||||
footer_tagline = "What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet."
|
||||
```
|
||||
|
||||
### Sass
|
||||
|
||||
Styles are compiled from sass and imported inline to the header :zap:
|
||||
|
@ -104,16 +118,6 @@ compile_sass = true
|
|||
|
||||
...and placing a replacement `style.scss` file in your sass folder.
|
||||
|
||||
### Netlify
|
||||
|
||||
Deployed on netlify? Add a link in the footer by setting `netlify` in `extra` as `true`.
|
||||
|
||||
```toml
|
||||
[extra]
|
||||
|
||||
netlify = true
|
||||
```
|
||||
|
||||
## Original
|
||||
This template is based on the Jekyll template [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed) by Bradley Taunt.
|
||||
|
||||
|
|
|
@ -14,7 +14,9 @@ seo = true
|
|||
author = "El Carpet"
|
||||
ogimage = "lightning.png"
|
||||
|
||||
zola = true
|
||||
netlify = true
|
||||
maintained_with_love = true
|
||||
|
||||
footer_links = [
|
||||
{url = "$BASE_URL/about", name = "About"},
|
||||
|
|
|
@ -83,17 +83,18 @@
|
|||
</nav>
|
||||
{% endif %}
|
||||
<small>
|
||||
Built with <a href="https://www.getzola.org/">Zola</a>
|
||||
{%- if config.extra.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{% endif -%}
|
||||
.<br />
|
||||
Maintained with ♥ for the web.
|
||||
{%- if config.extra.zola -%}Built with <a href="https://www.getzola.org/">Zola</a>{%- endif -%}
|
||||
{%- if config.extra.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{%- endif -%}
|
||||
{%- if config.extra.zola -%}.<br />{%- endif %}
|
||||
{% if config.extra.maintained_with_love %}Maintained with ♥ for the web.<br />{% endif %}
|
||||
{% if config.extra.footer_tagline %}{{ config.extra.footer_tagline }}{% endif %}
|
||||
</small>
|
||||
</footer>
|
||||
{% endblock footer %}
|
||||
|
||||
</main>
|
||||
{% block extra_scripts %}
|
||||
{% endblock extra_scripts %}
|
||||
{% block after_main %}
|
||||
{% endblock after_main %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
Loading…
Reference in a new issue