Skip to content

Links in copyright notice in footer #5362

Answered by squidfunk
pideu-mh asked this question in Q&A
Discussion options

You must be logged in to vote

As you noticed, it't not possible to use relative links at this point. What you can do is use theme extension, override the copyright partial and use the url filter to make the link relative. Something like:

<!-- Copyright and theme information -->
<div class="md-copyright">
  {% if config.copyright %}
    <div class="md-copyright__highlight">
      <a href="{{ 'contact' | url }}">&#10140; Contact</a>
    </div>
  {% endif %}
  {% if not config.extra.generator == false %}
    Made with
    <a
      href="https://squidfunk.github.io/mkdocs-material/"
      target="_blank" rel="noopener"
    >
      Material for MkDocs
    </a>
  {% endif %}
</div>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pideu-mh
Comment options

Answer selected by pideu-mh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants