Skip to content

Commit da7824e

Browse files
committed
docs: Display license info in footer
Signed-off-by: Sharon Koech <sharon.koech@canonical.com>
1 parent ef92337 commit da7824e

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

docs/_templates/footer.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,26 @@
4141
<div class="copyright">
4242
{%- if hasdoc('copyright') %}
4343
{% trans path=pathto('copyright'), copyright=copyright|e -%}
44-
<a href="{{ path }}">Copyright</a> &#169; {{ copyright }}
44+
<a href="{{ path }}">&copy; {{ copyright }} {{ author }}</a>
4545
{%- endtrans %}
4646
{%- else %}
4747
{% trans copyright=copyright|e -%}
48-
Copyright &#169; {{ copyright }}
48+
&copy; {{ copyright }} {{ author }}
4949
{%- endtrans %}
5050
{%- endif %}
5151
</div>
5252
{%- endif %}
53+
{%- if license and license.name -%}
54+
{%- if license.url -%}
55+
<div class="license">
56+
This page is licensed under <a href="{{ license.url }}">{{ license.name }}</a>
57+
</div>
58+
{%- else -%}
59+
<div class="license">
60+
This page is licensed under {{ license.name }}
61+
</div>
62+
{%- endif -%}
63+
{%- endif -%}
5364

5465
{# mod: removed "Made with" #}
5566

@@ -89,4 +100,4 @@
89100
{% endif %}
90101
</div>
91102
<div class="right-details"><a href="" class="js-revoke-cookie-manager muted-link">Manage your tracker settings</a></div>
92-
</div>
103+
</div>

0 commit comments

Comments
 (0)