Skip to content

Commit

Permalink
fix static files being included twice on HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
schettino72 committed May 15, 2021
1 parent 3727e49 commit b9c65b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions sphinx_press_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
{%- endblock %}
{# <meta name="description" content="{{ description }}"> #}
{%- block css %}
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1)}}">
<link rel="stylesheet" href="{{ pathto('_static/theme.css', 1)}}">
{%- for css in css_files %}
{%- if css|attr("rel") %}
<link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
Expand All @@ -22,8 +20,6 @@

{%- block scripts %}
{# FIXME: use link-preload #}
<script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>

<!-- sphinx script_files -->
{%- for scriptfile in script_files %}
{{ js_tag(scriptfile) }}
Expand Down
2 changes: 1 addition & 1 deletion sphinx_press_theme/theme.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[theme]
inherit = basic
stylesheet = css/theme.css # required by sphinx
stylesheet = theme.css # required by sphinx
pygments_style = paraiso-dark
sidebars = util/searchbox.html, util/sidetoc.html

Expand Down

0 comments on commit b9c65b0

Please sign in to comment.