File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{% if sourcename is defined and theme_use_edit_page_button and page_source_suffix %}
2
2
{% set src = sourcename.split('.') %}
3
3
< div class ="tocsection editthispage ">
4
- < a href ="{{ to_main(get_edit_provider_and_url()[1]) }} ">
4
+ {% set provider, url = get_edit_provider_and_url() %}
5
+ < a href ="{{ to_main(url) }} ">
5
6
< i class ="fa-solid fa-pencil "> </ i >
6
- {% set provider = get_edit_provider_and_url()[0] %}
7
7
{% block edit_this_page_text %}
8
8
{% if provider %}
9
9
{% trans provider=provider %}Edit on {{ provider }}{% endtrans %}
Original file line number Diff line number Diff line change 2
2
{% if sourcename is defined and theme_use_edit_page_button==true and page_source_suffix %}
3
3
{% set src = sourcename.split('.') %}
4
4
< div class ="tocsection editthispage ">
5
- < a href ="{{ get_edit_provider_and_url()[1] }} ">
5
+ {% set provider, url = get_edit_provider_and_url() %}
6
+ < a href ="{{ url }} ">
6
7
< i class ="fa-solid fa-pencil "> </ i >
7
- {% set provider = get_edit_provider_and_url()[0] %}
8
8
{% block edit_this_page_text %}
9
9
{% if provider %}
10
10
{% trans provider=provider %}Edit on {{ provider }}{% endtrans %}
You can’t perform that action at this time.
0 commit comments