Skip to content

Commit

Permalink
fix: Source show on other window
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Nov 30, 2024
1 parent 1e433c1 commit 471a3a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contents/_templates/sourcelink.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{# Sphinx sidebar template: "show source" link. #}
{%- if show_source and has_source and sourcename %}
<div role="note" aria-label="source link">
<h3>{{ _('This Page') }}</h3>
<ul class="this-page-menu">
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
target="_blank" rel="nofollow">{{ _('Show Source') }}</a></li>
</ul>
</div>
{%- endif %}

0 comments on commit 471a3a6

Please sign in to comment.