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`.
|
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
|
### Sass
|
||||||
|
|
||||||
Styles are compiled from sass and imported inline to the header :zap:
|
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.
|
...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
|
## Original
|
||||||
This template is based on the Jekyll template [Light Speed Jekyll](https://github.com/bradleytaunt/lightspeed) by Bradley Taunt.
|
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"
|
author = "El Carpet"
|
||||||
ogimage = "lightning.png"
|
ogimage = "lightning.png"
|
||||||
|
|
||||||
|
zola = true
|
||||||
netlify = true
|
netlify = true
|
||||||
|
maintained_with_love = true
|
||||||
|
|
||||||
footer_links = [
|
footer_links = [
|
||||||
{url = "$BASE_URL/about", name = "About"},
|
{url = "$BASE_URL/about", name = "About"},
|
||||||
|
|
|
@ -83,17 +83,18 @@
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<small>
|
<small>
|
||||||
Built with <a href="https://www.getzola.org/">Zola</a>
|
{%- 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.netlify %} & hosted on <a href="https://netlify.com">Netlify</a>{%- endif -%}
|
||||||
.<br />
|
{%- if config.extra.zola -%}.<br />{%- endif %}
|
||||||
Maintained with ♥ for the web.
|
{% if config.extra.maintained_with_love %}Maintained with ♥ for the web.<br />{% endif %}
|
||||||
|
{% if config.extra.footer_tagline %}{{ config.extra.footer_tagline }}{% endif %}
|
||||||
</small>
|
</small>
|
||||||
</footer>
|
</footer>
|
||||||
{% endblock footer %}
|
{% endblock footer %}
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
{% block extra_scripts %}
|
{% block after_main %}
|
||||||
{% endblock extra_scripts %}
|
{% endblock after_main %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue