{% extends template.self %}

{% block head %}
    {{ super() }}
    <link rel="canonical" href="{{ config.pluginsConfig['canonical-link'].baseURL }}/{{ file.path | replace('index.html.md','') | replace('README.md','') | replace('readme.md','') | replace('.md','.html') | replace('.adoc','.html')}}">
{% endblock %}
{% extends template.self %}

{% block head %}
    {{ super() }}
    <link rel="canonical" href="{{ config.pluginsConfig['canonical-link'].baseURL }}/{{ file.path | replace(config.structure['readme'],'') | replace('index.html.md','') | replace('README.md','') | replace('readme.md','') | replace('.md','.html') | replace('.adoc','.html')}}">
{% endblock %}

Replace custom index file by reading from config
Replace custom index file by reading from config