File: layout.html

package info (click to toggle)
sphinx-needs 5.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,924 kB
  • sloc: python: 21,132; javascript: 187; makefile: 89; sh: 29; xml: 10
file content (22 lines) | stat: -rw-r--r-- 731 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{# Import the theme's layout. #}
{% extends '!layout.html' %}

{%- block footer %}
    {{ super() }}

    <script>
        var footer_copyright = document.querySelector(".md-footer-copyright__highlight");
        var this_year = new Date().getFullYear();
        var copyright_span = document.createElement('span');
        var company_link = document.createElement('a');

        footer_copyright.innerHTML = "";
        copyright_span.innerHTML = `&copy; Copyright 2017-${this_year}, `;
        company_link.href = "http://useblocks.com";
        company_link.textContent = "team useblocks";

        footer_copyright.append(copyright_span);
        footer_copyright.lastChild.append(company_link);
    </script>

{%- endblock %}