Skip to content

Commit

Permalink
support arbitrary source URLs, closes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
anarcat committed Sep 5, 2016
1 parent 1c3393d commit ac9adc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions alabaster/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@
{% endif %}
{%- if show_source and has_source and sourcename %}
{% if show_copyright or theme_show_powered_by %}|{% endif %}
{%- if source_url_prefix %}
<a href="{{ source_url_prefix }}{{ pagename }}{{ source_suffix }}"
rel="nofollow">{{ _('Page source') }}</a>
{%- else %}
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Page source') }}</a>
{%- endif %}
{%- endif %}
</div>

{% if theme_github_banner|lower != 'false' %}
Expand Down

0 comments on commit ac9adc3

Please sign in to comment.