Skip to content

Commit

Permalink
Use resource=True with pathto
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 15, 2024
1 parent 5f8511d commit 4ce7433
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alabaster/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

{%- block extrahead %}
{{ super() }}
<link rel="stylesheet" href="{{ pathto('_static/custom.css', 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/custom.css', resource=True) }}" type="text/css" />
{% if theme_touch_icon %}
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, 1) }}" />
<link rel="apple-touch-icon" href="{{ pathto('_static/' ~ theme_touch_icon, resource=True) }}" />
{% endif %}

{# Deprecated in favor of html_baseurl (pageurl). This is already set in the basic theme #}
Expand Down Expand Up @@ -95,7 +95,7 @@
{% endif %}
{%- if show_source and has_source and sourcename %}
{% if show_copyright or show_sphinx %}|{% endif %}
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
<a href="{{ pathto('_sources/' + sourcename, resource=True)|e }}"
rel="nofollow">{{ _('Page source') }}</a>
{%- endif %}
</div>
Expand Down

0 comments on commit 4ce7433

Please sign in to comment.