mirror of
https://github.com/Speyll/anemone.git
synced 2024-11-24 22:06:39 +00:00
Merge pull request #20 from WyvernIXTL/main
Added optional generation of div in footer to display content license…
This commit is contained in:
commit
96837512f2
3 changed files with 16 additions and 2 deletions
|
@ -114,6 +114,7 @@ toc = true
|
||||||
- Set the `author` in both the main config and in pages' metadata.
|
- Set the `author` in both the main config and in pages' metadata.
|
||||||
- Use the `image` variable in pages to add an image to HTML `<meta>` tags.
|
- Use the `image` variable in pages to add an image to HTML `<meta>` tags.
|
||||||
- Similarly, set `favicon` in the main config, and it will be used as the site icon.
|
- Similarly, set `favicon` in the main config, and it will be used as the site icon.
|
||||||
|
- Set `footer_content_license` and `footer_content_license_link` if you wish to display content license information in the footer.
|
||||||
|
|
||||||
#### Disable Twitter Card
|
#### Disable Twitter Card
|
||||||
|
|
||||||
|
|
|
@ -46,3 +46,7 @@ header_nav = [
|
||||||
{ url = "/journal", name_en = "/journal/", name_fr = "/journal/" },
|
{ url = "/journal", name_en = "/journal/", name_fr = "/journal/" },
|
||||||
{ url = "/blog", name_en = "/blog/", name_fr = "/blog/" }
|
{ url = "/blog", name_en = "/blog/", name_fr = "/blog/" }
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Optional footer license text. It will only show, when using footer_content_license.
|
||||||
|
#footer_content_license = "Creative Commons Attribution 4.0 International"
|
||||||
|
#footer_content_license_link = "https://creativecommons.org/licenses/by/4.0/"
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
<hr>
|
<hr>
|
||||||
<div class=footContainer>
|
<div class=footContainer>
|
||||||
|
{% if config.extra.footer_content_license %}
|
||||||
|
<div>Except where otherwise noted, content on this site is licensed under a
|
||||||
|
{% if config.extra.footer_content_license_link %}
|
||||||
|
<a target="_blank" rel="noopener noreferrer" href="{{config.extra.footer_content_license_link}}">{{config.extra.footer_content_license}}</a>
|
||||||
|
{% else %}
|
||||||
|
{{config.extra.footer_content_license}}
|
||||||
|
{% endif %}
|
||||||
|
license.</div>
|
||||||
|
{% endif %}
|
||||||
<div class="footLeft">
|
<div class="footLeft">
|
||||||
<p>Licensed under the <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/MIT_License">MIT License</a>.<br>
|
<p>Theme and color theme licensed under <a target="_blank" rel="noopener noreferrer" href="https://en.wikipedia.org/wiki/Licence_MIT">MIT</a>.<br>
|
||||||
Built with <a target="_blank" rel="noopener noreferrer" href="https://www.getzola.org">Zola</a> using <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/anemone">anemone</a> theme & <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/veqev">veqev</a> colors.<br>
|
Built with <a target="_blank" rel="noopener noreferrer" href="https://www.getzola.org">Zola</a> using <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/anemone">anemone</a> theme & <a target="_blank" rel="noopener noreferrer" href="https://github.com/Speyll/veqev">veqev</a> colors.<br>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue